summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-04-17 12:48:50 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-04-17 12:48:50 +0100
commitd4d566b85fb34ca4f57fee06c5f4b52bb675d687 (patch)
treed32d4d11e63a8c4184a69eab2fb065717b34a33e /build
parent90c33e09c1e1868b80f3594475e90c1ea765c99e (diff)
allow argent version of vasile to be installed side by side
Diffstat (limited to 'build')
-rwxr-xr-xbuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..c4c507f
--- /dev/null
+++ b/build
@@ -0,0 +1,40 @@
+#!/usr/bin/env bash
+
+# Vasile needs root privileges and a proper kernel to run
+
+kernelconfig
+checkroot
+
+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 "$workdir" && ! -d "$overlaydir" ]] ; then
+ for i in "$rodir" "$rwdir" "$workdir" "$overlaydir" ; do
+ mkdir "$i"
+ done
+ chrootstartx64
+ break
+ elif [[ -d "$rodir" && -d "$rwdir" && -d "$workdir" && -d "$overlaydir" ]] ; then
+ chrootstop
+ for i in "$rodir" "$rwdir" "$workdir" "$overlaydir" ; do
+ rm -rf "$i"
+ done
+ continue
+ fi
+ done
+}
+
+main () {
+ chrootchecksumx64
+ chrootpreparex64
+ chrootoverlaysx64
+ chrootbuildsystemx64
+ chrootbuildx64
+ chrootx64
+ chrootstop
+}
+
+main
+exit 0