ref: 0d7123e496c1964cb5304e0eca7333a965661df7
parent: 53add21f8552982e62c855d9a836ff69db078004
author: Jacob Moody <moody@posixcafe.org>
date: Sun Oct 5 21:33:00 EDT 2025
sysupdate: onwards and upwards Changing repo to clean up things that don't have a place.
--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -1,9 +1,26 @@
#!/bin/rc -b
+
rfork en
cd /
+
+if(! test -d /dist/9front/.git) {
+ >[1=2] {
+ echo 'the repo has been modified; pray we do not modify it further'
+ echo 'in order to update, run the following commands:'
+ echo ' mkdir /dist/9front && cd /dist/9front && \'
+ echo ' hget https://git.9front.org/static/9front-scrubbed.tar.gz | tar xz'
+ echo 'once that has been done, you may delete /dist/plan9front.'
+ exit upgrade
+ }
+}
+
if(! test -d .git)
- bind -ac /dist/plan9front /
+ bind -ac /dist/9front /
+if(! grep -s git.9front.org/plan9front/9front /.git/config){
+ >[1=2] echo 'repo does not point at 9front'
+ exit wrongrepo
+}
if(! ~ `{git/branch} heads/front)
>[1=2] echo sysupdate: must be on "front" to pull
if not
- git/pull -u gits://git.9front.org/plan9front/plan9front
+ git/pull -u gits://git.9front.org/plan9front/9front
--
⑨