summaryrefslogtreecommitdiff
path: root/xtract
blob: 50e6eb9475b0f126de6be2aca535d7377c7824f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
PATH=/bin:/usr/bin
export PATH
osname=`uname -s | sed -e 's/_NT-.*$/_NT/; s/^MINGW[0-9]*/CYGWIN/'`
compiled=$0."$osname"
if [ -x "$compiled" ]
then
  exec "$compiled" "$@"
else
  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