On Thu, 11 Aug 2011 21:53:24 -0300 Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> wrote:
purge_single command can be usefull to save space during build. It removes all files in working directory except "iso/" and *.iso.
Workflow can be:
(32) ./build.sh all_iso_single -> i686 *.iso are ready. (32) ./build.sh purge_single -> safe cleanup. (64) ./build.sh all_iso_single -> x86_64 *.iso are ready. (64) ./build.sh purge_single -> safe cleanup. (any) ./build.sh all_iso_dual -> dual *.iso are ready.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> --- configs/releng/build.sh | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 135cc03..284ab76 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -215,8 +215,8 @@ make_dual() {
_usage () { - echo "usage ${0##*/} net_iso_single | core_iso_single | all_iso_single | clean_single" - echo " net_iso_dual | core_iso_dual | all_iso_dual | clean_dual" + echo "usage ${0##*/} net_iso_single | core_iso_single | all_iso_single | purge_single | clean_single" + echo " net_iso_dual | core_iso_dual | all_iso_dual | purge_dual | clean_dual" echo exit ${1} } @@ -280,6 +280,16 @@ case "${command_name}" in make_dual netinstall make_dual core ;; + purge_single) + find ${work_dir} -mindepth 1 -maxdepth 1 \ + ! -path ${work_dir}/iso -prune \ + | xargs rm -r + ;; + purge_dual) + find ${work_dir}/dual -mindepth 1 -maxdepth 1 \ + ! -path ${work_dir}/dual/iso -prune \ + | xargs rm -r + ;; clean_single) rm -rf ${work_dir} rm -f ${name}-${version}-*-${arch}.iso
I would put the workflows also in the readme. Dieter