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

⟦2d950d721⟧ TextFile

    Length: 1786 (0x6fa)
    Types: TextFile
    Notes: UNIX file
    Names: »mkmkfiles«

Derivation

└─⟦b1d6695d7⟧ Bits:30004155/sitdisk.imd SW95713I 386/ix Software Development System Rel. 2.0
└─⟦b1d6695d7⟧ UNIX Filesystem
    └─⟦this⟧ »sitls/new/usr/subsets/tools/mkmkfiles« 

TextFile

#
#  Copyrighted as an unpublished work.
#  (c) Copyright 1987 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  "@(#)mkmkfiles.sh	1.2 - 87/08/21"
args=$*
for pkg in $args
do
	comb=`fgrep $pkg MULDISKS`
	if [ -z "$comb" ]
	then
		cat <<! >$pkg/makefile

ROOT=${ROOT-/}
FLOP=${FLOP-5}
floppy : proto
	FLOP=\$(FLOP) ROOT=\$(ROOT) bldflop $pkg
	touch floppy

!
	else
		set $comb
		cat <<! >$pkg/makefile

!
		echo >>$pkg/makefile "\nfloppy : proto"
		if [ "$1" = "$pkg" ]
		then
			for p in $2 $3 $4 $5 $6 $7 $8 $9
			do
				echo >>$pkg/makefile "\tcd ../$p;\$(MAKE) proto"
			done
			cat <<! >>$pkg/makefile
	FLOP=\$(FLOP) ROOT=\$(ROOT) bldmflop $*
	touch floppy

!
		else
			echo >>$pkg/makefile "\tcd ../$1;\$(MAKE) floppy\n"
		fi
	fi
	cat <<! >>$pkg/makefile
proto : order Rlist.$pkg
	FLOP=\$(FLOP) ROOT=\$(ROOT) bldproto $pkg
	touch proto

Rlist.$pkg : FILELIST.$pkg DIRS
	FLOP=\$(FLOP) ROOT=\$(ROOT) bldrlist $pkg

order : FILELIST.$pkg $pkg.name
	FLOP=\$(FLOP) ROOT=\$(ROOT) bldorder $pkg
	touch order

$pkg.name : FILELIST.$pkg NAME VERSION
	FLOP=\$(FLOP) ROOT=\$(ROOT) bldmcs $pkg

FILELIST.$pkg DIRS : FILES
	FLOP=\$(FLOP) ROOT=\$(ROOT) bldflist $pkg

clean :
	-[ -d disk.1 ] && su root -c "rm -fr disk.*"

clobber : clean
	rm -f order proto* Rlist.* FILELIST.* link unlink ONELINK NOFILE \
		SIZE.* ORDER* DIRS NBRDISKS FILES.* floppy $pkg.name \
		Remove drivers

!
done