Annotation of 43BSDTahoe/new/news/src/localize.7300, revision 1.1.1.1

1.1       root        1: #localize.7300 - for AT&T UNIX PC 7300 and 3b1 system, to use the shared
                      2: # library.
                      3: #From philabs!hhb!kosman!kevin Sun Nov 9 12:00:17 1986
                      4: rm -f Makefile
                      5: cp Makefile.dst Makefile
                      6: chmod u+w Makefile
                      7: 
                      8: ed - Makefile  <<'EOF'
                      9: g/^#USG /s///
                     10: g/^#V7 /d
                     11: g/^#VMS /d
                     12: g/^#BSD4_[123] /d
                     13: g/#NOTVMS/s/#NOTVMS.*//
                     14: /CFLAGS[        ]*=/t.
                     15: .s/CFLAGS/MFLAGS/p
                     16: .s/-Dindex.*strrchr//p
                     17: /-o compress compress.c/s//compress.c -o compress/p
                     18: g/Makefile.dst/s//Makefile/p
                     19: /-o postnews/s/$(CFLAGS) //
                     20: g/$(CFLAGS) $(LFLAGS)/t.\
                     21: .-1s/$(LFLAGS)/-c/\
                     22: s/ -o .*//p\
                     23: .+1s/ $(CFLAGS)//\
                     24: s/\.c/.o/p
                     25: /-c compress.c/s/CFLAGS/MFLAGS/p
                     26: g/$(LFLAGS)/s;$(LFLAGS);& /lib/crt0s.o shlib.ifile;\
                     27: s/$(CC)/$(LD)/
                     28: g/-ltermlib/s/-ltermlib//
                     29: g/chmod 755.*inews/s/755/6755/p
                     30: /UUXFLAGS =/s/ -z//p
                     31: w
                     32: q
                     33: EOF
                     34: 
                     35: rm -f defs.h
                     36: cp defs.dist defs.h
                     37: chmod u+w defs.h
                     38: 
                     39: ed - defs.h <<'EOF'
                     40: /DFLTSUB/s/".*"/"all"/p
                     41: /ROOTID/s/10/101/p
                     42: /TMAIL/s;^;/*;p
                     43: /PAGE/s;/usr/ucb/more;/usr/bin/more;p
                     44: /DFTXMIT/s/ -z//p
                     45: /UXMIT/s/ -z//p
                     46: /UNAME/s;/\* ;;p
                     47: /DOXREF/s;/\* ;;p
                     48: /MYORG/s;".*";"/etc/MYORG";p
                     49: w
                     50: q
                     51: EOF
                     52: 
                     53: #  specific stuff to tailor the shared-libarary ifile.  The news software
                     54: #  duplicates some code in the shared library and its easiest just to avoid
                     55: #  the error messages.  Also, the ifile for some reason does not define
                     56: #  daylight (from ctime(3c)) -- as near as I can tell, this is where it goes.
                     57: 
                     58: rm -f shlib.ifile
                     59: cat /lib/shlib.ifile >shlib.ifile
                     60: chmod u+w shlib.ifile
                     61: 
                     62: ed - shlib.ifile <<'EOF'
                     63: /^PC /d
                     64: /^BC /d
                     65: /^UP /d
                     66: /^ospeed /d
                     67: /^COLS /d
                     68: /^_sibuf /i
                     69: 
                     70: daylight = 0x303658;
                     71: 
                     72: .
                     73: w
                     74: q
                     75: EOF

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.