]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- script to cleanup sources, name may be a little misleading
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 16 Aug 2010 14:05:57 +0000 (14:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clean-distfiles.sh -> 1.1

clean-distfiles.sh [new file with mode: 0644]

diff --git a/clean-distfiles.sh b/clean-distfiles.sh
new file mode 100644 (file)
index 0000000..8e9cc79
--- /dev/null
@@ -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}
This page took 0.05221 seconds and 4 git commands to generate.