scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 7315744690c993f813403d50958c364fb9c640b8
parent 2cf9cd727972d9991596dd6640797cdcf7622d4c
Author: sin <sin@2f30.org>
Date:   Mon Nov 21 13:51:47 +0000

Only call finish() if world/xenocara was built

Diffstat:
upgrade-obsd | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/upgrade-obsd b/upgrade-obsd @@ -1,5 +1,7 @@ #!/bin/sh -e +finalize=0 + upgradekernel() { rm -rf /usr/obj/* cd /usr/src/sys/arch/`machine`/compile/GENERIC.MP @@ -15,6 +17,7 @@ upgradeworld() { cd /usr/src make obj make build + finalize=1 } upgradexenocara() { @@ -23,6 +26,7 @@ upgradexenocara() { make bootstrap make obj make build + finalize=1 } finish() { @@ -52,4 +56,4 @@ for arg in "$@"; do esac done -finish +test "$finalize" -eq 1 && finish