home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / spencer_2bsd.tar.gz / 2bsd.tar / src / me / install.sh < prev    next >
Text File  |  1980-02-17  |  572b  |  36 lines

  1. if $1x = x goto argcnt
  2. echo stripping and installing $1 $2 $3 $4 $5 $6 $7 $8 $9
  3. : loop
  4. if $1x = x goto done
  5. echo $1:
  6. ed $1
  7. 1a
  8. %beginstrip%
  9. .
  10. g/%beginstrip%/d
  11. i
  12. .\" This version has had comments stripped; an unstripped version is available.
  13. .
  14. +,$g/[.    ]\\".*/s///
  15. g/[     ][     ]*$/s///
  16. g/^$/d
  17. g/\\n@/d
  18. w _mac_temp_
  19. q
  20. if $1 = tmac.e goto mainmac
  21. cp _mac_temp_ /usr/lib/me/$1
  22. goto endloop
  23. : mainmac
  24. cp _mac_temp_ /usr/lib/tmac.e
  25. : endloop
  26. rm _mac_temp_
  27. shift
  28. goto    loop
  29. : done
  30. cp revisions /usr/lib/me/revisions
  31. echo    "Done"
  32. exit
  33. : argcnt
  34. echo "Usage: install <-me file list>"
  35. exit
  36.