DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

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

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦c475d6022⟧ TextFile

    Length: 1183 (0x49f)
    Types: TextFile
    Notes: UNIX file
    Names: »backup«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »sys/build/backup« 

TextFile

#! /bin/csh -f

set mdir = "-"
if (-f $subs/partab) then
	source $subs/partab
	set mdir = $dc1h[3]
endif
if ("$mdir" == "-") then
	set mdir = `ask bkmntdir "Give directory dc1h is mounted on:`"
	if ("$mdir" == quit) exit(1)
endif

echo ""
echo "Re-executing: mount /dev/dc1h $mdir"
umount /dev/dc1h >& /dev/null
mount /dev/dc1h $mdir
if ($status) exit(0)
cd $mdir
if ($status) exit(0)
echo "Making $mdir/lost+found..."
cd $mdir; mklost+found
echo "Copying unixes..."
cd /; cp `cat $subs/bkroot` $mdir
echo "Making standard directories..."
cd $mdir; mkdir bin etc dev tmp usr usr/bin usr/ucb usr/tmp
if ($status) exit(0)
cd $mdir; chmod 0777 tmp usr/tmp
echo "Copying commands from /bin..."
cd /bin; cp `cat $subs/bkbin` $mdir/bin
echo "Copying commands from /etc..."
cd /etc; cp `cat $subs/bketc` $mdir/etc
echo "Copying commands from /usr/bin..."
cd /usr/bin; cp `cat $subs/bkusrbin` $mdir/usr/bin
echo "Copying commands from /usr/ucb..."
cd /usr/ucb; cp `cat $subs/bkusrucb` $mdir/usr/ucb
echo "Making devices..."
cd /dev; cp MAKEDEV $mdir/dev
cd $mdir/dev; MAKEDEV std flop dc1 bm
echo "Making symbols for $mdir/vmback..."
newsym $mdir/vmback $mdir/vmsymbols
echo ""
df /dev/dc1h