diff -u --recursive --new-file wspr-4.0.r2963_orig/wspr wspr-4.0.r2963/wspr --- wspr-4.0.r2963_orig/wspr 2013-02-02 16:13:36.423612727 +0000 +++ wspr-4.0.r2963/wspr 2013-02-02 23:19:54.117935576 +0000 @@ -1,2 +1,17 @@ -LD_LIBRARY_PATH=./lib -python -O wspr.py +#!/bin/sh +if [ -e /usr/local/bin/python ] ; then + LOCALBASE=/usr/local/ +else + LOCALBASE=/usr/ +fi +if [ ! -e ~/.wspr ] ; then + mkdir ~/.wspr + mkdir ~/.wspr/save +fi +if [ ! -e ~/.wspr/hamlib_rig_numbers ] ; then + cp /usr/share/wspr/hamlib_rig_numbers ~/.wspr/hamlib_rig_numbers +fi + +cd ~/.wspr +LD_LIBRARY_PATH=./lib +python -O ${LOCALBASE}/share/wspr/wspr.py