|
|
1.1.1.2 ! root 1: #! /bin/sh 1.1 root 2: # Install modified versions of certain ANSI-incompatible system header files 3: # which are fixed to work correctly with ANSI C 4: # and placed in a directory that GNU C will search. 5: # This works properly on a Sun in system version 3.4; 6: # for other versions, you had better check. 7: 8: mkdir /usr/local/lib/gcc-include 1.1.1.2 ! root 9: for dir in sys sun sundev sunwindow; do ! 10: if [ -d /usr/include/$dir ]; then ! 11: mkdir /usr/local/lib/gcc-include/$dir ! 12: fi ! 13: done ! 14: 1.1 root 15: cp /usr/include/sys/ioctl.h /usr/local/lib/gcc-include/sys/ioctl.h 16: chmod +w /usr/local/lib/gcc-include/sys/ioctl.h 17: ex /usr/local/lib/gcc-include/sys/ioctl.h <<EOF 18: g/_IO/s/(\(.\),/('\1',/ 19: g/#define._IO/s/'x'/x/g 20: wq 21: EOF 22: 1.1.1.2 ! root 23: for file in sys/mtio.h sys/vcmd.h sys/des.h \ ! 24: vaxuba/qvioctl.h \ ! 25: sun/dkio.h sun/fbio.h sun/gpio.h sun/ndio.h \ ! 26: sundev/kbio.h sundev/msio.h sundev/fpareg.h sundev/mcpcmd.h \ ! 27: sundev/msreg.h sundev/vuid_event.h sunwindow/win_ioctl.h; do ! 28: if [ -r /usr/include/$file ]; then ! 29: cp /usr/include/$file /usr/local/lib/gcc-include/$file ! 30: chmod +w /usr/local/lib/gcc-include/$file ! 31: ex /usr/local/lib/gcc-include/$file <<EOF ! 32: g/_IO/s/(\(.\),/('\1',/ ! 33: wq ! 34: EOF ! 35: fi ! 36: done ! 37: 1.1 root 38: cp /usr/include/sys/ttychars.h /usr/local/lib/gcc-include/sys/ttychars.h 39: chmod +w /usr/local/lib/gcc-include/sys/ttychars.h 40: ex /usr/local/lib/gcc-include/sys/ttychars.h << EOF 41: g/CTRL/s/(\(.\))/('\1')/ 42: g/#define.CTRL/s/'c'/c/g 43: wq 44: EOF
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.