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

⟦5425c33ed⟧ TextFile

    Length: 2816 (0xb00)
    Types: TextFile
    Notes: UNIX file
    Names: »ectbuild«

Derivation

└─⟦0cfe73749⟧ Bits:30004154/config.imd SW95707I VP/ix MS-DOS emulator Rel. 1.1
└─⟦0cfe73749⟧ UNIX Filesystem
    └─⟦this⟧ »vc/new/usr/vpix/etc/ectbuild« 

TextFile

#
#  Copyrighted as an unpublished work.
#  (c) Copyright 1988 INTERACTIVE Systems Corporation
#  All rights reserved.
#
#  RESTRICTED RIGHTS
#
#  These programs are supplied under a license.  They may be used,
#  disclosed, and/or copied only as permitted under such license
#  agreement.  Any copy must contain the above copyright notice and
#  this restricted rights notice.  Use, copying, and/or disclosure
#  of the programs is strictly prohibited unless otherwise provided
#  in the license agreement.
#

#ident  "@(#)ectbuild	1.1 - 88/07/27"

#	Build a vpix in a $VCONF tree.

if [ -d $ROOT/etc/atconf/bin ]
then
	CC=${CC:-$ROOT/etc/atconf/bin/kerncc}
	LD=${LD:-$ROOT/etc/atconf/bin/kernld}
	STRIP=${STRIP:-$ROOT/etc/atconf/bin/kernst}
else
	CC=${CC:-/bin/cc}
	LD=${LD:-/bin/ld}
	STRIP=${STRIP:-/bin/strip}
fi

VCONF=${VCONF:-$ROOT/usr/vpix/etc/conf}
VPIXDEVS=${VPIXDEVS:-$ROOT/usr/vpix/etc/vpixdevs}

while [ "$1" != "" ]
do
	case $1 in
	-v)	shift; VPIXDEVS=$1; shift;;
	-c)	shift; VCONF=$1; shift;;
	*)	echo "usage:  $0 [-c confdir] [-v vpixdevs]";
		exit 1;;
	esac
done

# Ensure that VP/ix Core and Configuration subsets are properly installed

if [ -x $ROOT/usr/vpix/etc/iemcheck ] && $ROOT/usr/vpix/etc/iemcheck
	then :
	else exit 1
fi

# Find all IEM's to be configured in
# (Note that bmouse, although an IEM, is always built-in, and
# may never be removed...)

echo "configuring vpix..."
set `grep -v "^#" $VPIXDEVS | awk -F: '{
     if ($2 != "fixed" && $2 != "dda" && $8 == "Y")
	    print $2
     }'`

# Ensure all IEM directories and object modules are found

cd $VCONF; VCONF=`pwd`			# expand to full name
retcode=0
for iem in $*
do
	if [ ! -r $iem/$iem.o ]
	then
		retcode=1
		echo "$VCONF/$iem/$iem.o not found"
	fi
done
[ $retcode = 1 ] && exit 1

# Create and compile gdi_list.c
( echo "#include \"gdi.h\"\n"
  echo "extern int init_dda();"
  for iem in $*
  do
	echo "extern int init_${iem}();"
  done
  echo
  echo "struct gdi_entry gdi_table[] ="
  echo "{"
  echo "\t\"dda\",\tinit_dda,"
  for iem in $*
  do
	echo "\t\"$iem\",\tinit_${iem},"
  done
  echo "\t0,\t0"
  echo "};"
) >gdi_list.c

echo "compiling gdi_list.c..."
$CC -c $CFLAGS gdi_list.c
[ $? != 0 ] && { echo $CC gdi_list.c failed;  exit 1; }

# Build list of object files and link

OFILES="gdi_list.o vpix_gdi.o "
for iem in $*
do
	OFILES="$OFILES $iem/$iem.o"
done

echo "linking vpix..."
$LD -o vpix vpixifile $OFILES
[ $? != 0 ] && { echo "vpix link failed:   $LD -o vpix vpixifile $OFILES"
				exit 1; }
echo "stripping vpix..."
$STRIP vpix

# Install vpix executable

echo "installing vpix... (current vpix saved in $ROOT/usr/vpix/vpix.old)"
chmod 5755 vpix
chown root vpix
rm -f $ROOT/usr/bin/vpix
mv -f $ROOT/usr/vpix/vpix $ROOT/usr/vpix/vpix.old
mv vpix $ROOT/usr/vpix
ln $ROOT/usr/vpix/vpix $ROOT/usr/bin

exit 0