|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U i
Length: 3893 (0xf35)
Types: TextFile
Notes: UNIX file
Names: »install«
└─⟦1627fb8ec⟧ Bits:30004169/disk7.imd Uniplex II+ V.6 release 1.0 (dansk)
└─⟦1627fb8ec⟧ UNIX Filesystem
└─⟦this⟧ »up/new/usr/UAP/.installation/BASE/install«
: 'BASE/install
L..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..R
Usage: install {1|2}
Assumes: INFORMIXDIR set/exported
TERM and TERMINFO/TERMCAP (as appropriate) set to address temporary
(and valid) terminal description.
TERM_DATA set to "TERMINFO" on that sort of machine
Uredirect set
"PWD" is UAP
INSLANG set/exported
Exits: 0 - OK
other - fatal error, already reported
'
UFILES='utd umk ucp ufm uls umv urm'
FILES='uniplex.queue'
DIRS='lock pc tapes'
INFORMIXDIR=${INFORMIXDIR-/usr/informix}
case "$1" in
1)
: 'phase is 1
link UFILE to its other names'
for F in $UFILES; do
rm -f bin/$F
if ln bin/ufile bin/$F
then
:
else
echo "Error linking $F to ufile$BELL"
exit 1
fi
done
for F in $FILES; do
>> $F
chmod 666 $F
done
: '
Edit language dependencies in uniplex.sys, if required
Do the edits separately, in case one works and one fails
Also flip default paper sizes to A4
'
case "$INSLANG" in
UK*) F=uniplex.sys
ed - $F <<\EOF >/dev/null 2>&1
/^DATEFMT=/
s~DATEFMT='MM/DD/YY'~DATEFMT='DD/MM/YY'~
w
q
EOF
ed - $F <<\EOF >/dev/null 2>&1
/^SPELL=/
s~\(SPELL='ucorrect *-\)a~\1b~
w
q
EOF
F=PRINT/styles
ed - $F <<\EOF >/dev/null 2>&1
1,$s/8x11/A4/g
w
q
EOF
;;
esac
: Compile terminal descriptions, if appropriate
case "$TERM_DATA" in
TERMINFO) tic terminfo >/dev/null 2>&1;;
esac
: Compile uniplex.sys
if syscomp -s >/dev/null 2>&1; then
:
else
echo "Cannot compile \"uniplex.sys\" - compiler says:$BELL"
syscomp -s
exit 1
fi
: 'Create directories. Add ".dummy" file to prevent loss of directory
when using TAR/CPIO to move $Uniplex'
mkdir $DIRS >/dev/null 2>&1
chmod 777 $DIRS >/dev/null 2>&1
for d in $DIRS; do
> $d/.dummy
done
: 'Compile termdef for this terminal now that
the terminal data base has been set up.
Ensure that $TERM description is available to
other installation scripts.
'
install.TERM || exit 1
: Create UAP/.ufo database
: Set up ESC to send to ESC-q to ufo
ESC=`echo|tr '\012' '\033'`
echo $EN "${ESC}q$CEE" | ufo > /dev/null 2>&1
: Compile the dictionaries
cd dict
for d in dictmain dicta dictb supdicc
do
if test -f $d; then
updict -l english.lng -d $d
chmod 666 $d
fi
done
cd ..
cd uc
for f in ucdefs issidefs
do
if ucbld $f > /dev/null 2>&1; then
:
else
echo "Cannot compile spreadsheet file \"uc/$f\"."\
"Compiler says:$BELL"
ucbld $f
exit 1
fi
done
cd ..
;;
*) : PHASE 2
: Create /isam - only used on really dumb UNIXes
mkdir /isam >/dev/null 2>&1
chmod 777 /isam
for i in " " /lib /bin; do
mkdir $INFORMIXDIR$i >/dev/null 2>&1
done
v=`$INFORMIXDIR/lib/sqlexec -V 2>&1 |
sed -n '1s/.* *[^ ][^ ]* *\([12]\.[0-9]\).*/\1/p'`
case "$v" in
2.? ) echo "INFORMIX version $v already installed in $INFORMIXDIR.
UNIPLEX will use these programs"
: EXIT here if no INFORMIX work to do
exit 0
;;
1.? ) echo "INFORMIX version $v installed in $INFORMIXDIR.
Saving these programs under a different name"
;;
esac
: Now install INFORMIX stuff: SQLEXEC and DECCON
echo "Installing INFORMIX version 2 programs..."
f=sqlexec d=$INFORMIXDIR/lib
test -f $d/$f && save.file $d $f
cp bin/$f $d/.
chmod 6555 $d/$f >/dev/null 2>&1
chgrp informix $d/$f >/dev/null 2>&1
f=deccon d=$INFORMIXDIR/bin
test -f $d/$f && save.file $d $f
cp bin/$f $d/.
;;
esac
exit 0