summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-05-28 12:42:17 +0000
committerOlivier Blin <blino@mageia.org>2011-05-28 12:42:17 +0000
commit2b391c5db25c7fc933add5e9be4f721f7059b4b0 (patch)
tree09e203bfd34760e98f82bcfed2cf8cd547513b22
parente9dcd96097d8456d21e05f6ad02e3f8da494124b (diff)
downloaddraklive-config-2b391c5db25c7fc933add5e9be4f721f7059b4b0.tar
draklive-config-2b391c5db25c7fc933add5e9be4f721f7059b4b0.tar.gz
draklive-config-2b391c5db25c7fc933add5e9be4f721f7059b4b0.tar.bz2
draklive-config-2b391c5db25c7fc933add5e9be4f721f7059b4b0.tar.xz
draklive-config-2b391c5db25c7fc933add5e9be4f721f7059b4b0.zip
cleanup old live build sets before starting a new one
-rwxr-xr-xtools/build_live.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/build_live.sh b/tools/build_live.sh
index 0444eff..099c706 100755
--- a/tools/build_live.sh
+++ b/tools/build_live.sh
@@ -25,6 +25,9 @@ steps="--clean --all"
draklive_cmd="sudo draklive --config-root $draklive_config"
#draklive_cmd="sudo -u draklive sudo perl -I./draklive/lib ./draklive/draklive --config-root $draklive_config"
+# clean old build sets, keeping only sets from previous day and dist (iso + lists) for all sets
+find /var/lib/draklive/{chroot/*,build/*/*} -maxdepth 0 -mtime +0 -not -name dist -exec rm -rf {} \;
+
start=$(date)
for arch in $archs; do
for desktop in $desktops; do