home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume14 / sccs_b / part01 / sccs_install < prev   
Encoding:
Text File  |  1990-09-20  |  838 b   |  39 lines

  1. #!/bin/sh
  2. #+++
  3. #    NAME    : sccs_install
  4. #
  5. #    PURPOSE : check for presence of a file and, if not present then
  6. #          sccs_get to install a read only version of the file
  7. #          if file is present then do nothing
  8. #
  9. #    USAGE    : sccs_install file1  file2  ....
  10. #
  11. #    DATE    : Sat Mar 10 15:17:21 EST 1990
  12. #
  13. #    AUTHOR  : W. Hatch
  14. #
  15. #    PROJECT : WEH Software
  16. #            
  17. #    COMPANY : Coleman Research
  18. #          14504 Greenview Drive Suite 500
  19. #          Laurel, Maryland 20708
  20. #          Phone (301)470-3839
  21. #          FAX (301)776-5461
  22. #
  23. #------------------------------------------------------------------------
  24. # if no command line arguments then abort with usage instructions
  25. #------------------------------------------------------------------------
  26. usage="sccs_install file1  file2  .... "
  27. case $# in
  28.     0) echo $usage
  29.        exit;;
  30. esac
  31.  
  32. for i
  33. do
  34.     if [ ! -f $i ]
  35.     then
  36.         sccs_get $i
  37.     fi
  38. done
  39.