Plan 9 from Bell Labs’s /usr/web/sources/patch/sorry/install-added-venti/copydist

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

# prereq: mountdist
# desc: copy the distribution into the file system

switch($1){
case checkready
	if(! test -d /n/dist/dist/replica){
		copydist=notdone
		export copydist
		exit
	}
	if(test -f /n/fossil/dist/replica/didplan9){
		copydist=done
		export copydist
		exit
	}
case go
	inst/watchfd applylog 0 `{ls -l /n/dist/dist/replica/plan9.log | awk '{print $6}'} 'Installing file system' &
	replica/pull -c /rc/bin/inst/replcfg
	if(~ $status '' *conflicts || test -f /n/fossil/dist/replica/didplan9witherrors)
		>/n/fossil/dist/replica/didplan9
	if not
		>/n/fossil/dist/replica/didplan9witherrors

case checkdone
	if(! test -f /n/fossil/dist/replica/didplan9){
		copydist=notdone
		export copydist
	}
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].