#!/bin/rc # prereq: mountdist # desc: copy the distribution into the file system switch($1){ case checkready if(! test -d /n/dist/dist/plan9front){ copydist=notdone export copydist exit } if(test -d /n/newfs/dist/plan9front && test -f /tmp/copydone){ copydist=done export copydist exit } case go rm -f /tmp/copydone prompt -d yes 'Copy the distribution to the fs now?' yes no copynow=$rd if(~ $copynow yes) disk/mkfs -z 16372 -U -s /n/dist -d /n/newfs /sys/lib/sysconfig/proto/allproto cat /n/newfs/sys/src/ants/.hg/hgrc >/tmp/hgrc rm /n/newfs/sys/src/ants/.hg/hgrc cp /tmp/hgrc /n/newfs/sys/src/ants/.hg/hgrc touch /tmp/copydone case checkdone if(! test -f /tmp/copydone){ copydist=notdone export copydist } }