DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦cde28e5db⟧ TextFile

    Length: 4694 (0x1256)
    Types: TextFile
    Notes: UNIX file
    Names: »INSTALL«

Derivation

└─⟦2d8654ed6⟧ Bits:30004159 SW95851 RcTekst IV Rel. 1.2 (386/ix)
└─⟦2d8654ed6⟧ UNIX Filesystem
    └─⟦this⟧ »install/INSTALL« 
└─⟦5d210af82⟧ Bits:30004156 SW95754I Green Hill Pascal
└─⟦5d210af82⟧ UNIX Filesystem
    └─⟦this⟧ »install/INSTALL« 
└─⟦6c3d40b06⟧ Bits:30004150 SW95702I LANCOM 2.1
└─⟦6c3d40b06⟧ UNIX Filesystem
    └─⟦this⟧ »install/INSTALL« 
└─⟦a1caab7b4⟧ Bits:30004158 SW95851 RcTekst IV Rel. 1.0 (386/ix)
└─⟦a1caab7b4⟧ UNIX Filesystem
    └─⟦this⟧ »install/INSTALL« 
└─⟦bbefdb7d7⟧ Bits:30004157 SW95755I Green Hill C-386
└─⟦bbefdb7d7⟧ UNIX Filesystem
    └─⟦this⟧ »install/INSTALL« 

TextFile

#
#	find mount device
#
if	test -b "$1"
then
	mntdev=$1
elif	test -b /dev/diskette
then
	mntdev=/dev/diskette
elif	test -b /dev/install
then
	mntdev=/dev/install
else
	echo "**ERROR**	Can't find mount device"
	exit
fi
mntname="${2:-/install}"
#
#       Get the packages on this diskette
#
INSPATH=/install
cwd=`pwd`
cd $INSPATH
set `ls -d ??`
cd $cwd
nbrpkgs=$#
pkgs="$*"
for pkg in $pkgs
do
	PKGNAME=`cat /install/$pkg/new/usr/options/$pkg.name`
	echo Install the ${PKGNAME:-$pkg} package? "(y): \c"
	read resp
	[ "$resp" = "n" -o "$resp" = "N" ] && continue
	INSPATH=/install/$pkg/new
	PKGNAME=`cat ${INSPATH}/usr/options/$pkg.name`
	export PKGNAME
	LAST=`cat /install/$pkg/install/NBRDISKS`
	echo "Installing the ${PKGNAME}."
	[ -x /install/$pkg/install/copyright ] && /bin/sh /install/$pkg/install/copyright

	expect=1
	while   [ "$expect" -le "$LAST" ]
	do

		if      [ "$expect" -gt 1 ]
		then
			cd /
			/etc/umount $mntdev 2>/dev/null
			echo "Remove floppy and insert floppy number $expect"
			echo "Type <return> when ready: \c"
			read answer
			/etc/mount $mntdev $mntname -r 2>/dev/null
		else
			if [ "$expect" -eq 1 -a -r /usr/options/$pkg.name ]
			then
				echo "**WARNING**       The ${PKGNAME} is already installed"
				answer=""
				while [ "$answer" != y -a "$answer" != n ]
				do
					echo "Type 'y' to overwrite the ${PKGNAME} or \c"
					echo "'n' quit: \c"
					read answer
				done
				case $answer in
					y) ;;
					n)      cd /
						/etc/umount $mntdev 2>/dev/null
						exit 1;;
				esac
			fi
		fi

		#
		# Check to make sure that this floppy belongs to the package
		#

		while   [ ! -s ${INSPATH}/usr/options/$pkg.name -o "${PKGNAME}" != "`cat ${INSPATH}/usr/options/$pkg.name`" ]
		do
			echo "**ERROR** Floppy does not belong to the ${PKGNAME}"
			cd /
			/etc/umount $mntdev 2>/dev/null
			echo "Remove floppy and insert correct floppy"
			echo "Type <return> when ready: \c"
			read answer
			/etc/mount $mntdev $mntname -r 2>/dev/null
		done

		#
		# Check to make sure this is the correct floppy of the set
		#

		answer=""
		while   [ "`cat /install/$pkg/install/ORDER`" != "$expect" -a "$answer" != y ]
		do
			echo "**WARNING**       Floppy out of sequence"
			echo "Expecting floppy diskette number $expect"
			while [ "$answer" != y -a "$answer" != n ]
			do
				echo "Type 'y' to continue or \c"
				echo "'n' to try another floppy: \c"
				read answer
			done
			case $answer in
			n)      cd /
				/etc/umount $mntdev 2>/dev/null
				echo "Remove floppy and insert correct floppy"
				echo "Type <return> when ready: \c"
				read answer
				answer=""
				/etc/mount $mntdev $mntname -r 2>/dev/null
				;;
			y)      expect=`cat /install/$pkg/install/ORDER`
				;;
			esac
		done

		#
		#       Verify dependencies loaded
		#

		#
		# Verify that there is space for the package.
		#
		if [ "$expect" -eq 1 -a -x /install/$pkg/install/dependencies ]
		then
			if /bin/sh /install/$pkg/install/dependencies
			then :
			else
				exit 1
			fi
		fi

		if /etc/mount | grep /usr >/dev/null 2>&1
		then

			USRneeds=`expr "\`du -s ${INSPATH}/usr\`" : "\([0-9]*\).*"`
			USRspace=`expr "\`df /usr 2>/dev/null\`" : '.*: *\([0-9]*\)'`
			if
				[ "$USRspace" -lt "$USRneeds" ]
			then
				echo "**ERROR**   ${PKGNAME} cannot be installed --"
				echo "Not enough space on the hard disk."
				echo "There are $USRspace blocks available"
				echo "on the /usr file system --"
				echo "$USRneeds blocks are needed."
				exit
			fi
		else
			USRneeds=0
		fi
		ROOTneeds=`expr "\`du -s ${INSPATH}\`" : "\([0-9]*\).*"`
		ROOTneeds=`expr ${ROOTneeds} - ${USRneeds}`


		ROOTspace=`expr "\`df / 2>/dev/null\`" : '.*: *\([0-9]*\)'`


		if
			[ "${ROOTspace:-2000}" -lt "$ROOTneeds" ]
		then
			echo "**ERROR**   ${PKGNAME} cannot be installed --"
			echo "Not enough space on the hard disk."
			echo "There are $ROOTspace blocks available"
			echo "on the / (root) file system --"
			echo "$ROOTneeds blocks are needed."
			exit
		fi

		#       Do special work before files are copied in.
		if [ "$expect" -eq 1 -a -f /install/$pkg/install/preinstall ]
		then
			/bin/sh /install/$pkg/install/preinstall
		fi

		cd ${INSPATH}

		echo "The following files are being installed:"
		find . -print | cpio -pduvm /

		#       Do special work after files are copied in.
		cd /install/$pkg/install
		if [ -f link ]
		then
			. ./link
		fi
		if [ -f setup ]
		then
			. ./setup
		fi
		echo "Floppy diskette number $expect is complete"
		expect=`expr $expect + 1`
	done

	#       Do special work after files are copied in.
	cd /install/$pkg/install
	if [ -f postinstall ]
	then
		. ./postinstall
	fi


	echo "Installation of the ${PKGNAME} is complete."
	cd $cwd
done
exit