557 |
done |
done |
558 |
|
|
559 |
# |
# |
|
# install the script that tests the architecture, and make sure that it works |
|
|
# |
|
|
if [ -x $BINDIR/.arch-n-opsys ]; then |
|
|
vsay $this: Script $BINDIR/.arch-n-opsys already exists. |
|
|
else |
|
|
cat $CONFIGDIR/_arch-n-opsys \ |
|
|
| sed -e "s,@SHELL@,$SHELL,g" > $BINDIR/.arch-n-opsys |
|
|
chmod 555 $BINDIR/.arch-n-opsys |
|
|
if [ ! -x $BINDIR/.arch-n-opsys ]; then |
|
|
complain "$this: !!! Installation of $BINDIR/.arch-n-opsys failed." |
|
|
fi |
|
|
fi |
|
|
|
|
|
ARCH_N_OPSYS=`$BINDIR/.arch-n-opsys` |
|
|
if [ "$?" != "0" ]; then |
|
|
echo "$this: !!! Script $BINDIR/.arch-n-opsys fails on this machine." |
|
|
echo "$this: !!! You must patch this by hand and repeat the installation." |
|
|
exit 2 |
|
|
else |
|
|
vsay $this: Script $BINDIR/.arch-n-opsys reports $ARCH_N_OPSYS. |
|
|
fi |
|
|
eval $ARCH_N_OPSYS |
|
|
|
|
|
# |
|
560 |
# Function to install a "driver" script... |
# Function to install a "driver" script... |
561 |
# This takes care of patching the source of the script with the SHELL, |
# This takes care of patching the source of the script with the SHELL, |
562 |
# BINDIR, and VERSION variables to use. |
# BINDIR, and VERSION variables to use. |
583 |
# fi |
# fi |
584 |
} |
} |
585 |
|
|
586 |
|
# |
587 |
|
# install the script that tests architecture and os... |
588 |
|
# |
589 |
|
installdriver _arch-n-opsys .arch-n-opsys |
590 |
|
|
591 |
|
# |
592 |
|
# run it to figure out what architecture and os we are using, define |
593 |
|
# corresponding variables... |
594 |
|
# |
595 |
|
ARCH_N_OPSYS=`$BINDIR/.arch-n-opsys` |
596 |
|
if [ "$?" != "0" ]; then |
597 |
|
echo "$this: !!! Script $BINDIR/.arch-n-opsys fails on this machine." |
598 |
|
echo "$this: !!! You must patch this by hand and repeat the installation." |
599 |
|
exit 2 |
600 |
|
else |
601 |
|
vsay $this: Script $BINDIR/.arch-n-opsys reports $ARCH_N_OPSYS. |
602 |
|
fi |
603 |
|
eval $ARCH_N_OPSYS |
604 |
|
|
605 |
|
# |
606 |
|
# now install all the other driver scripts... |
607 |
|
# |
608 |
installdriver _run-sml .run-sml |
installdriver _run-sml .run-sml |
609 |
installdriver _link-sml .link-sml |
installdriver _link-sml .link-sml |
610 |
installdriver _ml-build ml-build |
installdriver _ml-build ml-build |