BSD 3 development
[unix-history] / usr / lib / me / src / install
CommitLineData
8424c385
BJ
1#
2if ($#argv < 1) then
3 echo 'Usage: install <-me file list>'
4 exit
5endif
6echo stripping and installing $*
7foreach i ($*)
8 echo ${1}:
9 ed $i << 'EOF'
101a
11%beginstrip%
12.
13g/%beginstrip%/d
14i
15.\" This version has had comments stripped; an unstripped version is available.
16.
17+,$g/[. ]\\".*/s///
18g/[ ][ ]*$/s///
19g/^$/d
20g/\\n@/d
21w _mac_temp_
22q
23'EOF'
24 if ($i == tmac.e) then
25 cp _mac_temp_ /usr/lib/tmac.e
26 else
27 cp _mac_temp_ /usr/lib/me/$i
28 endif
29 rm _mac_temp_
30end
31cp revisions /usr/lib/me/revisions
32echo "Done"
33exit
34
35