summaryrefslogtreecommitdiff
path: root/build64
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-08-30 20:08:41 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-08-30 20:08:41 +0100
commit96716471ccdd0b0a779ba7ea2fb3858eac68ccda (patch)
tree1505faf7ee840bd7940068d64334a6cc79e2393c /build64
parent3f17e27be05f9a41fe044fbf5ef3c16e6d625be8 (diff)
parent097ad73f4e3cf05ab290f067f484e482d6a4e421 (diff)
merge experimental into master
Diffstat (limited to 'build64')
-rwxr-xr-xbuild6437
1 files changed, 37 insertions, 0 deletions
diff --git a/build64 b/build64
new file mode 100755
index 0000000..6628014
--- /dev/null
+++ b/build64
@@ -0,0 +1,37 @@
+#!/bin/bash -x
+
+chrootpreparex64 () {
+ # check our environment for sanity
+ # if safe, trigger start && break the loop to build packages
+ # else trigger stop && cleanup && check again
+ while : true ; do
+ if [[ ! -d "$rodir" && ! -d "$rwdir" && ! -d "$overlaydir" ]] ; then
+ for i in "$rodir" "$rwdir" "$overlaydir" ; do
+ mkdir "$i"
+ done
+ chrootstartx64
+ break
+ elif [[ -d "$rodir" && -d "$rwdir" && -d "$overlaydir" ]] ; then
+ chrootstop
+ for i in "$rodir" "$rwdir" "$overlaydir" ; do
+ rm -rf "$i"
+ done
+ continue
+ fi
+ done
+}
+
+main () {
+ if checkroot ; then
+ chrootchecksumx64
+ chrootpreparex64
+ chrootoverlaysx64
+ chrootbuildsystemx64
+ chrootbuildx64
+ chrootx64
+ chrootstop
+ fi
+}
+
+main
+exit 0