code: plan9front

Download patch

ref: e1cc6a9a0f0ebbcbb32f177cfc2c977509cbb6fb
parent: a73a964e51247ed169d322c725a3a18859f109a3
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jun 14 19:58:09 EDT 2021

sysupdate: clean up transitional code

we just need git/pull now

--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -2,34 +2,7 @@
 
 rfork en
 
-updating=()
-nl='
-'
-if(! test -d /dist/plan9front/.git){
-	>[1=2] echo 'end of line for hg: moving to git.'
-	updating=1
-
-	if(! test -f /bin/git/pull){
-		>[1=2] echo 'git is required:'
-		>[1=2] echo '	cd /sys/src/cmd/git && mk install'
-		exit gitless
-	}
-
-	>[1=2] echo '	fetching snapshot...'
-	cd /dist/plan9front
-	hget http://git.9front.org/static/plan9front-seed.tar.gz | tar xz
-	mv .git-snap .git
-
-	git/fs
-	git/walk >/dev/null
-	>[1=2] echo '	pulling with git...'
-}
-
 cd /
 if(! test -d .git)
 	bind -ac /dist/plan9front /
 git/pull -u gits://git.9front.org/plan9front/plan9front
-
-if(~ $updating 1)
-	>[1=2] echo 'got git: you may remove /dist/plan9front/.hg'
-exit ''