home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- # Description: This script is used to install the Mux driver package,
- # and take a predefined Configuration and install that as well. This
- # assumes that the System.config/Instance0.table file has got Mux
- # already installed, and this is simply used as a means to bypass the
- # silliness of re-installing and re-Configuring the application every
- # time you do a make.
- Configuration=SerialPorts,DigiBoard4
- Configuration=SerialPort,COM2,DigiBoard4
- Configuration=COM1,COM2,DigiBoard4
- Configuration=COM1,COM2,Hayes
- Configuration=SerialPort,COM2
- eval `sed -n 's/^#[ ]*define[ ]*_NX_KERNEL[ ]*\([34]\)\([0-3]\).*/OS=\1.\2/p' MuxParm.h`
- if test -z "$OS" ; then
- OS=4.2
- fi
- Install=yes
- TTY=`tty`
- if test "$TTY" = "/dev/cudfc" ; then
- Install=no
- fi
- # Now lets go nutz
- if test "$Install" = "yes" ; then
- ./change.language English
- make bundle
- ./change.language French
- make bundle
- ./change.language English
- make install
- else
- ./change.language English
- make bundle
- ./change.language French
- make bundle
- ./change.language English
- ( cd Mux.config
- strip -x -u Mux_reloc
- strip Mux PostLoad
- mkdir /NextLibrary/Devices/Mux.config
- find . -print | cpio -pdlmuv /NextLibrary/Devices/Mux.config
- cd /NextLibrary/Devices/Mux.config
- find . -print | xargs chown root.wheel
- chmod 755 English.lproj French.lproj
- rm .lastBuildTime
- chmod 755 . )
- fi
- if test -f Configurations/$Configuration/Default.table ; then
- echo cp Configurations/$Configuration/* /NextLibrary/Devices/Mux.config
- cp Configurations/$Configuration/* /NextLibrary/Devices/Mux.config
- echo chmod 444 /NextLibrary/Devices/Mux.config/*.table
- chmod 444 /NextLibrary/Devices/Mux.config/*.table
- echo chown root.wheel /NextLibrary/Devices/Mux.config/*.table
- chown root.wheel /NextLibrary/Devices/Mux.config/*.table
- elif test -f Configurations/$Configuration/Mux.config/Default.table ; then
- echo cp Configurations/$Configuration/Mux.config/* /NextLibrary/Devices/Mux.config
- cp Configurations/$Configuration/Mux.config/* /NextLibrary/Devices/Mux.config
- echo chmod 444 /NextLibrary/Devices/Mux.config/*.table
- chmod 444 /NextLibrary/Devices/Mux.config/*.table
- echo chown root.wheel /NextLibrary/Devices/Mux.config/*.table
- chown root.wheel /NextLibrary/Devices/Mux.config/*.table
- if test -f Configurations/$Configuration/SerialPorts_$OS.config/Instance0.table ; then
- echo cp Configurations/$Configuration/SerialPorts_$OS.config/Instance0.table /NextLibrary/Devices/SerialPorts.config
- cp Configurations/$Configuration/SerialPorts_$OS.config/Instance0.table /NextLibrary/Devices/SerialPorts.config
- echo chmod 444 /NextLibrary/Devices/SerialPorts.config/Instance0.table
- chmod 444 /NextLibrary/Devices/SerialPorts.config/Instance0.table
- echo chown root.wheel /NextLibrary/Devices/SerialPorts.config/*.table
- chown root.wheel /NextLibrary/Devices/SerialPorts.config/*.table
- elif test "$OS" = "4.2" -a -f Configurations/$Configuration/ISASerialPort.config/Instance0.table ; then
- echo cp Configurations/$Configuration/ISASerialPort.config/Instance0.table /NextLibrary/Devices/ISASerialPort.config
- cp Configurations/$Configuration/ISASerialPort.config/Instance0.table /NextLibrary/Devices/ISASerialPort.config
- echo chmod 444 /NextLibrary/Devices/ISASerialPort.config/Instance0.table
- chmod 444 /NextLibrary/Devices/ISASerialPort.config/Instance0.table
- echo chown root.wheel /NextLibrary/Devices/ISASerialPort.config/*.table
- chown root.wheel /NextLibrary/Devices/ISASerialPort.config/*.table
- elif test -f Configurations/$Configuration/SerialPorts.config/Instance0.table ; then
- echo cp Configurations/$Configuration/SerialPorts.config/Instance0.table /NextLibrary/Devices/SerialPorts.config
- cp Configurations/$Configuration/SerialPorts.config/Instance0.table /NextLibrary/Devices/SerialPorts.config
- echo chmod 444 /NextLibrary/Devices/SerialPorts.config/Instance0.table
- chmod 444 /NextLibrary/Devices/SerialPorts.config/Instance0.table
- echo chown root.wheel /NextLibrary/Devices/SerialPorts.config/*.table
- chown root.wheel /NextLibrary/Devices/SerialPorts.config/*.table
- fi
- fi
-