home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Drivers / Mux-1.9-I / pack < prev    next >
Encoding:
Text File  |  1998-02-15  |  4.0 KB  |  84 lines

  1. #! /bin/sh
  2. #    Description: This script is used to install the Mux driver package,
  3. #    and take a predefined Configuration and install that as well. This
  4. #    assumes that the System.config/Instance0.table file has got Mux
  5. #    already installed, and this is simply used as a means to bypass the
  6. #    silliness of re-installing and re-Configuring the application every
  7. #    time you do a make.
  8. Configuration=SerialPorts,DigiBoard4
  9. Configuration=SerialPort,COM2,DigiBoard4
  10. Configuration=COM1,COM2,DigiBoard4
  11. Configuration=COM1,COM2,Hayes
  12. Configuration=SerialPort,COM2
  13. eval `sed -n 's/^#[     ]*define[     ]*_NX_KERNEL[     ]*\([34]\)\([0-3]\).*/OS=\1.\2/p' MuxParm.h`
  14. if test -z "$OS" ; then
  15.     OS=4.2
  16. fi
  17. Install=yes
  18. TTY=`tty`
  19. if test "$TTY" = "/dev/cudfc" ; then
  20.     Install=no
  21. fi
  22. # Now lets go nutz
  23. if test "$Install" = "yes" ; then
  24.     ./change.language English
  25.     make bundle
  26.     ./change.language French
  27.     make bundle
  28.     ./change.language English
  29.     make install
  30. else
  31.     ./change.language English
  32.     make bundle
  33.     ./change.language French
  34.     make bundle
  35.     ./change.language English
  36.     ( cd Mux.config
  37.     strip -x -u Mux_reloc
  38.     strip Mux PostLoad
  39.     mkdir /NextLibrary/Devices/Mux.config
  40.     find . -print | cpio -pdlmuv /NextLibrary/Devices/Mux.config
  41.     cd /NextLibrary/Devices/Mux.config
  42.     find . -print | xargs chown root.wheel
  43.     chmod 755 English.lproj French.lproj
  44.     rm .lastBuildTime
  45.     chmod 755 . )
  46. fi
  47. if test -f Configurations/$Configuration/Default.table ; then
  48.     echo cp Configurations/$Configuration/* /NextLibrary/Devices/Mux.config
  49.     cp Configurations/$Configuration/* /NextLibrary/Devices/Mux.config
  50.     echo chmod 444 /NextLibrary/Devices/Mux.config/*.table
  51.     chmod 444 /NextLibrary/Devices/Mux.config/*.table
  52.     echo chown root.wheel /NextLibrary/Devices/Mux.config/*.table
  53.     chown root.wheel /NextLibrary/Devices/Mux.config/*.table
  54. elif test -f Configurations/$Configuration/Mux.config/Default.table ; then
  55.     echo cp Configurations/$Configuration/Mux.config/* /NextLibrary/Devices/Mux.config
  56.     cp Configurations/$Configuration/Mux.config/* /NextLibrary/Devices/Mux.config
  57.     echo chmod 444 /NextLibrary/Devices/Mux.config/*.table
  58.     chmod 444 /NextLibrary/Devices/Mux.config/*.table
  59.     echo chown root.wheel /NextLibrary/Devices/Mux.config/*.table
  60.     chown root.wheel /NextLibrary/Devices/Mux.config/*.table
  61.     if test -f Configurations/$Configuration/SerialPorts_$OS.config/Instance0.table ; then
  62.         echo cp Configurations/$Configuration/SerialPorts_$OS.config/Instance0.table /NextLibrary/Devices/SerialPorts.config
  63.         cp Configurations/$Configuration/SerialPorts_$OS.config/Instance0.table /NextLibrary/Devices/SerialPorts.config
  64.         echo chmod 444 /NextLibrary/Devices/SerialPorts.config/Instance0.table
  65.         chmod 444 /NextLibrary/Devices/SerialPorts.config/Instance0.table
  66.         echo chown root.wheel /NextLibrary/Devices/SerialPorts.config/*.table
  67.         chown root.wheel /NextLibrary/Devices/SerialPorts.config/*.table
  68.     elif test "$OS" = "4.2" -a -f Configurations/$Configuration/ISASerialPort.config/Instance0.table ; then
  69.         echo cp Configurations/$Configuration/ISASerialPort.config/Instance0.table /NextLibrary/Devices/ISASerialPort.config
  70.         cp Configurations/$Configuration/ISASerialPort.config/Instance0.table /NextLibrary/Devices/ISASerialPort.config
  71.         echo chmod 444 /NextLibrary/Devices/ISASerialPort.config/Instance0.table
  72.         chmod 444 /NextLibrary/Devices/ISASerialPort.config/Instance0.table
  73.         echo chown root.wheel /NextLibrary/Devices/ISASerialPort.config/*.table
  74.         chown root.wheel /NextLibrary/Devices/ISASerialPort.config/*.table
  75.     elif test -f Configurations/$Configuration/SerialPorts.config/Instance0.table ; then
  76.         echo cp Configurations/$Configuration/SerialPorts.config/Instance0.table /NextLibrary/Devices/SerialPorts.config
  77.         cp Configurations/$Configuration/SerialPorts.config/Instance0.table /NextLibrary/Devices/SerialPorts.config
  78.         echo chmod 444 /NextLibrary/Devices/SerialPorts.config/Instance0.table
  79.         chmod 444 /NextLibrary/Devices/SerialPorts.config/Instance0.table
  80.         echo chown root.wheel /NextLibrary/Devices/SerialPorts.config/*.table
  81.         chown root.wheel /NextLibrary/Devices/SerialPorts.config/*.table
  82.     fi
  83. fi
  84.