diff --git a/install/configure.sh b/install/configure.sh index 412e152..92757f2 100755 --- a/install/configure.sh +++ b/install/configure.sh @@ -359,7 +359,8 @@ fi # -z TAILSEEKER_BINDIR rm -f $install_dir/tseek cat $TOPDIR/install/tailseeker.in | \ -sed -e "s,%%TAILSEEKER_DIR%%,$TOPDIR,g" > $install_dir/tseek +sed -e "s,%%TAILSEEKER_DIR%%,$TOPDIR,g" -e "s,^##,,g" \ + -e 's,^\(.*\)##$,# \1,g' > $install_dir/tseek script_mode=$(printf "%04o\n" $((0777 & ~$(umask)))) chmod $script_mode $install_dir/tseek diff --git a/install/tailseeker.in b/install/tailseeker.in index 112b591..93555cc 100755 --- a/install/tailseeker.in +++ b/install/tailseeker.in @@ -21,9 +21,11 @@ # THE SOFTWARE. # -TAILSEEKER_DIR = '%%TAILSEEKER_DIR%%' +import sys, os + +TAILSEEKER_DIR = os.path.join(os.path.dirname(sys.argv[0]), '..') ## +##TAILSEEKER_DIR = '%%TAILSEEKER_DIR%%' -import sys sys.path.insert(0, TAILSEEKER_DIR) from tailseeker import tskcommand