diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-08-30 23:31:17 +0300 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-08-30 23:31:17 +0300 |
commit | 139b07bdf4d13f436f5956f6be8b57212e6f9770 (patch) | |
tree | 1505faf7ee840bd7940068d64334a6cc79e2393c /build32 | |
parent | dff5ef64773eec549808f3c29c157b4b4c245623 (diff) | |
parent | 96716471ccdd0b0a779ba7ea2fb3858eac68ccda (diff) |
Noul vasile adaugat
Diffstat (limited to 'build32')
-rwxr-xr-x | build32 | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +#!/bin/bash -x + +chrootpreparex86 () { + # 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 + chrootstartx86 + 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 + chrootchecksumx86 + chrootpreparex86 + chrootoverlaysx86 + chrootbuildsystemx86 + chrootbuildx86 + chrootx86 + chrootstop + fi +} + +main +exit 0 |