|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 10288 (0x2830)
Types: TextFile
Notes: R1k Text-file segment
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦8baf8ad97⟧
└─⟦this⟧
# Created by make - do not edit
# This script unpacks the files in rational.Z and installs them in
# the appropriate directories. To run it, type:
# csh install_release
#
set BINDIR=/usr/bin/X11
set FONTDIR=/usr/lib/X11/fonts/misc
set MANDIR=/usr/man/mann
set MANFILE=rational.n
set XAPPLOADDIR=/usr/lib/X11/app-defaults
#
touch installation_log
echo `date` >> installation_log
if ( -e rational ) then
echo ""
echo -n Rational seems to be unpacked. Do it again\?" "\[y\]
set ANSWER=$<
else
set ANSWER=""
endif
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
echo "Unpacking rational.Z (takes about a minute)"
uncompress -c rational.Z | tar -xf -
chmod +x rational
echo Unpacked rational.Z >> installation_log
endif
#
while ( 1 )
echo ""
echo -n Is the bin directory ${BINDIR}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
echo bin directory is $BINDIR >>installation_log
ls -l $BINDIR/rational >> installation_log
if ( -e ${BINDIR}/rational ) then
echo ""
if (`ls -l $BINDIR/rational | grep '^l' | wc -l` == "1") then
ls -l $BINDIR/rational
echo -n Is this link correct\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
echo link accepted >> installation_log
set xpath="notfound"
set itsnext="0"
foreach i (`ls -l $BINDIR/rational`)
if ($itsnext == "1") set xpath=$i
if ($i == "->") set itsnext="1"
end
if ( -e $xpath ) then
echo -n Copy new executable over $xpath\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
cp -i rational $xpath
echo Tried to overwrite $xpath >> installation_log
else
rm -i $xpath
echo Tried to delete $xpath >> installation_log
endif
else
cp -i rational $xpath
echo Tried to create $xpath >> installation_log
endif
else
rm -i $BINDIR/rational
echo Tried to remove link >> installation_log
endif
else
rm -i $BINDIR/rational
echo Tried to delete $BINDIR/rational >> installation_log
endif
endif
if ( !( -e $BINDIR/rational) ) then
echo ""
echo -n Do you want a link to rational in ${BINDIR}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
set xpath=$cwd
set ANSWER="n"
while ( $ANSWER == "n" )
echo -n Will rational actually reside in $xpath\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
ln -s $xpath/rational ${BINDIR}
echo Created link to $xpath >> installation_log
if ( $xpath != $cwd ) then
cp -i rational $xpath/rational
echo tried to create $xpath/rational >>installation_log
endif
break
else
echo -n Where will rational actually reside\?" "
set xpath=$<
set ANSWER="n"
endif
end
break
endif
echo ""
echo -n Do you want rational copied to ${BINDIR}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
cp rational ${BINDIR}/rational
break
endif
else
break
endif
else
echo -n Where is the bin directory\?" "
set BINDIR=$<
endif
end
ls -l ${BINDIR}/rational
ls -l $BINDIR/rational >> installation_log
if (`ls -l $BINDIR/rational | grep '^l' | wc -l` == "1") then
set xpath="notfound"
set itsnext="0"
foreach i (`ls -l $BINDIR/rational`)
if ($itsnext == "1") set xpath=$i
if ($i == "->") set itsnext="1"
end
ls -l $xpath >> installation_log
endif
#
echo ""
echo Fonts have not changed since the last release.
echo -n Do you want to skip font installation\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) goto manstuff
while ( 1 )
echo ""
echo -n Is the font directory ${FONTDIR}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
echo ""
echo -n Do you want links to the rational fonts in $FONTDIR\?" " \[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
echo ""
echo What is the path name of the directory where the fonts will be\?
echo -n path\:" "
set PATH=$<
if ( -d $PATH ) then
cp -i fonts/* $PATH
foreach j (`ls fonts`)
if ( -e $FONTDIR/$j ) rm -i $FONTDIR/$j
ln -s $PATH/$j $FONTDIR/$j
ls -l $FONTDIR/$j >> installation_log
end
break
else
echo $PATH is not a directory
endif
else
cp -i fonts/* ${FONTDIR}
foreach j (`ls fonts/*`)
ls -l $FONTDIR/$j >> installation_log
end
break
endif
else
echo -n Where should fonts be put\?" "
set FONTDIR=$<
endif
end
if ( -e $BINDIR/mkfontdir ) then
${BINDIR}/mkfontdir ${FONTDIR}
else
echo You need to run mkfontdir on $FONTDIR
endif
#
manstuff:
while ( 1 )
echo ""
echo -n Is the manual directory ${MANDIR}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
if ( -e ${MANDIR}/${MANFILE} ) then
echo ""
echo -n Manual page exists. Install it again\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
rm -f ${MANDIR}/${MANFILE}
endif
else
set ANSWER=""
endif
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
echo ""
echo -n Do you want a link to rational.man in ${MANDIR}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
ln -s $cwd/rational.man ${MANDIR}/${MANFILE}
break
endif
echo ""
echo -n Do you want rational.man copied to ${MANDIR}/${MANFILE}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
install -c -m 0444 rational.man ${MANDIR}/${MANFILE}
break
endif
else
break
endif
else
echo -n Where is the man directory\?" "
set MANDIR=$<
echo -n Is the manual page ${MANFILE}\?" "\[y\]
set ANSWER=$<
if (!( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' )) then
echo -n What is the name of the man page\?" "
set MANFILE=$<
endif
endif
end
ls -l ${MANDIR}/${MANFILE}
#
while ( 1 )
echo ""
echo -n Are X11 application defaults in ${XAPPLOADDIR}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
rm -f ${XAPPLOADDIR}/RATIONAL
echo ""
echo -n Should ${XAPPLOADDIR}/RATIONAL be a link\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
ln -s $cwd/RATIONAL ${XAPPLOADDIR}
break
endif
echo ""
echo -n Do you want RATIONAL copied to ${XAPPLOADDIR}\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
cp $cwd/RATIONAL ${XAPPLOADDIR}
break
endif
else
echo -n Where is X11 app default directory\?" "
set XAPPLOADDIR=$<
endif
end
ls -l ${XAPPLOADDIR}/RATIONAL
while ( 1 )
if ( -e ${XAPPLOADDIR}/Rational_Access ) then
if ( -d ${XAPPLOADDIR}/Rational_Access ) then
foreach i (`ls ${XAPPLOADDIR}/Rational_Access`)
rm -f ${XAPPLOADDIR}/$i
end
endif
endif
echo ""
echo -n Should ${XAPPLOADDIR}/Rational_Access be a link\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
if ( -e ${XAPPLOADDIR}/Rational_Access ) then
if ( -d ${XAPPLOADDIR}/Rational_Access ) then
rmdir -f ${XAPPLOADDIR}/Rational_Access
else
rm -f ${XAPPLOADDIR}/Rational_Access
endif
endif
ln -s $cwd/Rational_Access ${XAPPLOADDIR}
break
endif
echo ""
echo -n Do you want files copied to ${XAPPLOADDIR}/Rational_Access\?" "\[y\]
set ANSWER=$<
if ( ${ANSWER} == "" || ${ANSWER} == 'Y' || ${ANSWER} == 'y' ) then
if ( -e ${XAPPLOADDIR}/Rational_Access ) then
if ( -f ${XAPPLOADDIR}/Rational_Access ) then
rm -f ${XAPPLOADDIR}/Rational_Access
mkdir ${XAPPLOADDIR}/Rational_Access
endif
else
mkdir ${XAPPLOADDIR}/Rational_Access
endif
cp $cwd/Rational_Access/* ${XAPPLOADDIR}
break
endif
end
ls -l ${XAPPLOADDIR}/Rational_Access
echo ""
echo Rational Access installation complete