summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-10-11 16:14:36 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-10-11 16:14:36 +0200
commitadacaacd8921d3a678f13f796f4f03c5a9144ab7 (patch)
treeabab7e3af97b3d62b2248937b6e5bea701ba09ca /ch
parente5cf5827b5cc9498df89df56afe4537ac5d3c9f7 (diff)
downloadbin-adacaacd8921d3a678f13f796f4f03c5a9144ab7.tar.gz
bin-adacaacd8921d3a678f13f796f4f03c5a9144ab7.tar.xz
ch: add cbuild (clean build)
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'ch')
-rwxr-xr-xch7
1 files changed, 7 insertions, 0 deletions
diff --git a/ch b/ch
index 5d5489e..d579345 100755
--- a/ch
+++ b/ch
@@ -2,6 +2,7 @@
# ch build <id>... build the current package for multiple chroots
# ch clean remove all working copies
+# ch cbuild <id>... clean then build
# ch install <id> <package files>... install the package files in the chroot
# ch kill all remove all chroots (including master chroot)
# ch update update all chroots
@@ -148,6 +149,12 @@ case $command in
chbuild "$arg" -R
done
;;
+ cbuild)
+ for arg; do
+ chclean "$arg"
+ chbuild "$arg"
+ done
+ ;;
build)
for arg; do
chbuild "$arg"