]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - clean-distfiles.sh
some new macro substitutions
[packages/rpm-build-tools.git] / clean-distfiles.sh
old mode 100644 (file)
new mode 100755 (executable)
index 8e9cc79..8e7cea9
@@ -6,8 +6,9 @@
 dir=$(dirname "$0")
 cd "$dir"
 
-ext=bz2,gz,rar,tgz,tbz2,zip,jar,Z,tar,png,ico,xpm,gif,rpm,bin,run,exe,iso,xpi,ZIP,dll
-ls -ld */*.{$ext}
+ext=bz2,gz,rar,tgz,tbz2,zip,jar,Z,tar,png,ico,xpm,gif,rpm,bin,run,exe,iso,xpi,ZIP,dll,pdf
+ls -ldrSh */*.{$ext}
+echo */*.{$ext} | xargs stat -c %s | awk '{s+=$1} END {printf("Total: %d MiB\n", s/1014/1024)}'
 
 echo remove? ctrl+c to abort
 read a
This page took 0.027526 seconds and 4 git commands to generate.