summaryrefslogtreecommitdiff
path: root/xtract
diff options
context:
space:
mode:
Diffstat (limited to 'xtract')
-rwxr-xr-xxtract13
1 files changed, 10 insertions, 3 deletions
diff --git a/xtract b/xtract
index ae44929..50e6eb9 100755
--- a/xtract
+++ b/xtract
@@ -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