From 180a10f985faed41b1eb991a0bf4eafb50bdf5cb Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Fri, 1 Sep 2006 15:09:45 +0000 Subject: [PATCH] - This is a shell wrapper script, suggested by someone on one of the wsjt lists. It should be portable between linux and FreeBSD at least and will create the necessary files needed if they are missing in ~user/.wsjt When run, a cd is done to ~/.wsjt and execution begins in this directory. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@267 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- wsjt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 wsjt diff --git a/wsjt b/wsjt new file mode 100755 index 000000000..b523a4121 --- /dev/null +++ b/wsjt @@ -0,0 +1,15 @@ +#!/bin/sh +if [ -e /usr/local/bin/python ] ; then + LOCALBASE=/usr/local/ +else + LOCALBASE=/usr/ +fi +if [ ! -e ~/.wsjt ] ; then + mkdir ~/.wsjt + mkdir ~/.wsjt/RxWav +fi +if [ ! -e ~/.wsjt/CALL3.TXT ] ; then + cp -f ${LOCALBASE}/share/wsjt/CALL3.TXT ~/.wsjt +fi +cd ~/.wsjt +python ${LOCALBASE}/bin/wsjt.py