aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-06-22 09:51:31 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-06-22 09:51:31 +0000
commit50f1d25176ac513fd9f8c1a8fa2f3a0698c53fa7 (patch)
tree019fff9de754440f284b54b5badbebeb5b558a32 /Tools
parentff4726b2bb30adcfa553fa0beb2d7ca54a4f7f4d (diff)
downloadports-50f1d25176ac513fd9f8c1a8fa2f3a0698c53fa7.tar.gz
ports-50f1d25176ac513fd9f8c1a8fa2f3a0698c53fa7.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/doupgrademach27
-rwxr-xr-xTools/portbuild/scripts/upgrademach14
2 files changed, 41 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/doupgrademach b/Tools/portbuild/scripts/doupgrademach
new file mode 100755
index 000000000000..ba2d5fb3c6ed
--- /dev/null
+++ b/Tools/portbuild/scripts/doupgrademach
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# configurable variables
+master=bento
+chroot=/a/asami/chroot
+kernelconfig=CLUSTER
+
+PATH=/sbin:/usr/sbin:$PATH
+
+if [ -f /usr/src/Makefile ]; then
+ mv /usr/src /usr/old.src
+ mv /usr/obj /usr/old.obj
+ mkdir /usr/src /usr/obj
+fi
+
+mount $master:$chroot/usr/src /usr/src
+mount $master:$chroot/usr/obj /usr/obj
+
+echo "installing world"
+cd /usr/src && make installworld > /usr/tmp/make.0 2>&1 </dev/null
+cd /sys/compile/$kernelconfig && make install
+
+cd /
+
+umount /usr/src /usr/obj
+
+reboot
diff --git a/Tools/portbuild/scripts/upgrademach b/Tools/portbuild/scripts/upgrademach
new file mode 100755
index 000000000000..078752b7ec15
--- /dev/null
+++ b/Tools/portbuild/scripts/upgrademach
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# usage: $0 machine
+
+if [ $# != 1 ]; then
+ echo "usage: $0 machine"
+ exit 1
+fi
+
+unset DISPLAY
+script=/a/asami/portbuild/scripts/doupgrademach
+
+scp -q -p $script $1:$script
+ssh -n $1 $script