diff options
Diffstat (limited to 'xtract')
-rwxr-xr-x | xtract | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,10 +1,17 @@ #!/bin/sh PATH=/bin:/usr/bin export PATH -compiled=$0.`uname -s | sed -e 's/_NT-.*$/_NT/; s/^MINGW[0-9]*/CYGWIN/'` +osname=`uname -s | sed -e 's/_NT-.*$/_NT/; s/^MINGW[0-9]*/CYGWIN/'` +compiled=$0."$osname" if [ -x "$compiled" ] then - exec "$compiled" "$@" + exec "$compiled" "$@" else - exec $0.pl -fallback "$@" + echo "" + echo "Unable to locate xtract executable. Please execute the following:" + echo "" + echo " ftp-cp ftp.ncbi.nlm.nih.gov /entrez/entrezdirect xtract.$osname.gz" + echo " gunzip -f xtract.$osname.gz" + echo " chmod +x xtract.$osname" + echo "" fi |