home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / getfiles.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  951 b   |  35 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=getfiles
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. #! /bin/sh
  9. #
  10. # RCSid[] = "@(#)$Header: getfiles.SH,v 3.1 86/10/15 08:23:52 pb Rel $"
  11. #
  12. # getfiles all the relevant files from the salford machine
  13. #  there are quite a few, but most only have one or two lines.
  14. #
  15. #    If you have problems with salfords address, it is currently
  16. #        000014901000/SPCP.FTP
  17.  
  18. #    THE NEXT LINE IS AUTOMATICALLY UPDATED WHEN \`Makefile' IS UPDATED
  19. hhcp -L "nrs!make.nrs>database>derfil2" $datadir/new/$dirsample
  20. !GROK!THIS!
  21. then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  22.     then
  23.         rm -f $outputfile.$$
  24.         echo "    " $outputfile not affected
  25.     elif mv $outputfile.$$ $outputfile
  26.     then
  27.         echo "    " $outputfile updated
  28.         chmod +x $outputfile
  29.     else
  30.         echo "+++    " $outputfile left in $outputfile.$$
  31.     fi
  32. else
  33.     echo "    " Failed to create $outputfile.$$
  34. fi
  35.