packages: clean-distfiles.sh (NEW) - script to cleanup sources, name may be...

glen glen at pld-linux.org
Mon Aug 16 16:06:05 CEST 2010


Author: glen                         Date: Mon Aug 16 14:06:05 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- script to cleanup sources, name may be a little misleading

---- Files affected:
packages:
   clean-distfiles.sh (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/clean-distfiles.sh
diff -u /dev/null packages/clean-distfiles.sh:1.1
--- /dev/null	Mon Aug 16 16:06:05 2010
+++ packages/clean-distfiles.sh	Mon Aug 16 16:05:57 2010
@@ -0,0 +1,15 @@
+#!/bin/sh
+# cleanup distfiles like files, i.e archives that can be likely be
+# re-downloaded.
+
+# be sure we are in right dir
+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}
+
+echo remove? ctrl+c to abort
+read a
+
+rm -vf */*.{$ext}
================================================================


More information about the pld-cvs-commit mailing list