summaryrefslogtreecommitdiff
path: root/configs/profile/rebuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/profile/rebuild.sh')
-rwxr-xr-xconfigs/profile/rebuild.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/configs/profile/rebuild.sh b/configs/profile/rebuild.sh
index a7e1af3..02f9999 100755
--- a/configs/profile/rebuild.sh
+++ b/configs/profile/rebuild.sh
@@ -4,27 +4,29 @@ readonly MODE='wipe' # total wipe of work dir optionally preservi
readonly PRESERVE_CACHE='false' # preserve package cache in 'wipe' mode
# readonly MODE='rebuild' # full update rebuild preserving work dir
# readonly MODE='tweak' # apply chroot customization tweaks only
-#readonly TARGET='dual' # dual-arch (default)
-readonly TARGET='i686' # i686 target only
-# readonly TARGET='x86_64' # x86_64 target only
-# readonly EDITION='OpenRC/CLI' # OpenRC/CLI init/WM-DE pair
-readonly EDITION='OpenRC/LXDE' # OpenRC/LXDE init/WM-DE pair
+# readonly TARGET='dual' # dual-arch (default)
+# readonly TARGET='i686' # i686 target only
+readonly TARGET='x86_64' # x86_64 target only
+readonly EDITION='OpenRC/CLI' # OpenRC/CLI init/WM-DE pair
+# readonly EDITION='OpenRC/LXDE' # OpenRC/LXDE init/WM-DE pair
# readonly EDITION='SystemD/CLI' # SystemD/CLI init/WM-DE pair (default)
# readonly EDITION='SystemD/LXDE' # SystemD/LXDE init/WM-DE pair
readonly TALKING='' # speech and braille disabled (default)
-#readonly TALKING='-S' # speech and braille enabled
+# readonly TALKING='-S' # speech and braille enabled
readonly CACHE='' # net-install (default)
-#readonly CACHE='-O' # offline install
+# readonly CACHE='-O' # offline install
readonly VERSION="`date +%Y.%m.%d`" # for ISO filename (default)
# readonly VERSION="`date +%Y.%m.%d-%H.%M`-alpha"
+readonly OUT_DIR=./out/new/
# prepare build command
-readonly CMD="./build.sh -v -E $EDITION -T $TARGET $TALKING $CACHE -V $VERSION $*"
+readonly CMD="./build.sh -v -E $EDITION -T $TARGET $TALKING $CACHE -V $VERSION -o $OUT_DIR $*"
# sanity checks
-((`id -u`)) && echo "This script must be run with root privileges." && exit
+((`id -u`)) && echo "This script must be run with root privileges." && exit || \
+ echo "Preparing (${MODE} mode): ${CMD}"
# cleanup in case of previous aborted run