|
|
1.1 root 1: # Shell script to do remote updating of notesfile binaire
2: # binaries on a 4.1a Bsd system (probably works on later Bsd too)
3: #
4: # This is a simplistic shell script. It assumes that the binaries
5: # already exist on the remote machine with the proper ownerships.
6: #
7: # If you moved "bin", "net", "utility" or "lib", you will have to
8: # modify this shell script.
9: #
10: # -- Ray Essick
11: #
12: # $Header: rinstall,v 1.7.0.1 85/05/02 16:12:29 notes Rel $
13: #
14: #
15: set echo
16: set bin = /usr/local
17: set net = /usr/bin
18: set utility = /usr/spool/notes/.utilities
19: set libdir = /usr/local/lib
20: set n = -n
21: set strip = strip
22: set chmod = chmod
23: set chgrp = chgrp
24: set nfgrp = notes
25: #
26: # install on all specified machines
27: #
28: foreach host ($argv)
29: #
30: # USERCMDS = main nfpipe nfprint nfstats checknotes
31: #
32: rcp main ${host}:${bin}/notes
33: rsh ${host} ${n} "${strip} ${bin}/notes;${chgrp} ${nfgrp} ${bin}/notes;${chmod} 2755 ${bin}/notes"
34: foreach i (nfpipe nfprint nfstats checknotes)
35: rcp $i ${host}:${bin}/$i
36: rsh ${host} ${n} "${strip} ${bin}/$i;${chgrp} ${nfgrp} ${bin}/$i; ${chmod} 2755 ${bin}/$i"
37: end
38: #
39: # NETCMDS = nfxmit nfrcv newsinput newsoutput
40: #
41: rcp nfxmit ${host}:${net}/nfxmit
42: rsh ${host} ${n} "${strip} ${net}/nfxmit;${chgrp} ${nfgrp} ${net}/nfxmit; ${chmod} 6750 ${net}/nfxmit"
43:
44: rcp nfrcv ${host}:${net}/nfrcv
45: rsh ${host} ${n} "${strip} ${net}/nfrcv;${chgrp} ${nfgrp} ${net}/nfrcv; ${chmod} 6755 ${net}/nfrcv"
46:
47: foreach i (newsinput newsoutput)
48: rcp $i ${host}:${utility}/$i
49: rsh ${host} ${n} "${strip} ${utility}/$i;${chgrp} ${nfgrp} ${utility}/$i; ${chmod} 6755 ${utility}/$i"
50: end
51: #
52: # UTILCMDS = mknf rmnf nfarchive nfaccess nfmail
53: #
54: foreach i (mknf rmnf)
55: rcp $i ${host}:${utility}/$i
56: rsh ${host} ${n} "${strip} ${utility}/$i;${chgrp} ${nfgrp} ${utility}/$i; ${chmod} 4710 ${utility}/$i"
57: end
58:
59: foreach i (nfarchive nfaccess)
60: rcp $i ${host}:${utility}/$i
61: rsh ${host} ${n} "${strip} ${utility}/$i;${chgrp} ${nfgrp} ${utility}/$i; ${chmod} 6755 ${utility}/$i"
62: end
63:
64: foreach i (nfmail)
65: rcp $i ${host}:${utility}/$i
66: rsh ${host} ${n} "${strip} ${utility}/$i;${chgrp} ${nfgrp} ${utility}/$i; ${chmod} 2755 ${utility}/$i"
67: end
68: #
69: # HLPFILES = access.help dir.help index.help lim.help read.help
70: #
71: rcp access.help dir.help index.help lim.help read.help ${host}:${utility}
72: #
73: # library (nfcomment, nfabort)
74: #
75: rcp libnfcom.a ${host}:${libdir}/libnfcom.a
76: rsh ${host} ${n} ranlib ${libdir}/libnfcom.a
77: end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.