[packages/rpm-build-tools] clean-distfiles.sh: Add more files to cleanup, show report

glen glen at pld-linux.org
Wed Feb 22 19:17:08 CET 2023


commit aab9957a8db6abe00ff55de43a8aa78cb6d35db0
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Feb 27 23:58:41 2022 +0200

    clean-distfiles.sh: Add more files to cleanup, show report

 clean-distfiles.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/clean-distfiles.sh b/clean-distfiles.sh
index 459f731..a730bcb 100755
--- a/clean-distfiles.sh
+++ b/clean-distfiles.sh
@@ -21,7 +21,7 @@ fi
 
 cd "$topdir"
 
-ext=bz2,gz,rar,tgz,tbz2,zip,jar,Z,tar,png,ico,xpm,gif,rpm,bin,run,exe,iso,xpi,ZIP,dll,pdf,xz,deb,crx
+ext=bz2,gz,rar,tgz,tbz2,zip,jar,Z,tar,png,ico,xpm,gif,rpm,bin,run,exe,iso,xpi,ZIP,dll,pdf,xz,deb,crx,war,gem,bz,lzma
 ls -ldrSh */*.{$ext} || :
 echo */*.{$ext} | xargs stat -c %s | awk '{s+=$1} END {printf("Total: %d MiB\n", s/1014/1024)}'
 
@@ -29,5 +29,7 @@ echo Move to $purgedir? Hit Ctrl+C to abort
 read a
 
 install -d $purgedir
-mv */*.{$ext} $purgedir
+mv */*.{$ext} $purgedir || :
 rmdir $purgedir || :
+
+du -sh "$purgedir"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/c4018dd7a6b56456565bc380d19de62ea690362d



More information about the pld-cvs-commit mailing list