]> Frank Brehm's Git Trees - scripts/root-bin.git/commitdiff
Added clear_distfiles.sh
authorFrank Brehm <frank@brehm-online.com>
Sun, 2 Feb 2014 10:11:17 +0000 (11:11 +0100)
committerFrank Brehm <frank@brehm-online.com>
Sun, 2 Feb 2014 10:11:17 +0000 (11:11 +0100)
clear_distfiles.sh [new file with mode: 0644]

diff --git a/clear_distfiles.sh b/clear_distfiles.sh
new file mode 100644 (file)
index 0000000..de8eafd
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+set -e
+set -n
+
+cd /usr/portage/distfiles || exit 6
+
+if [[ ! -d .old ]] ; then
+    mkdir -p .old
+fi
+
+mv -vi *.bz2 \
+       *.gz \
+       *.xz \
+       *.lzma \
+       *.Z \
+       *.zip \
+       *.tar \
+       *.tgz \
+       *.tbz2 \
+       *.tar.gz.* \
+       *.jar \
+       *.patch \
+       *.rpm \
+       *.deb \
+       *.gem \
+       *.txt \
+       *.ps \
+       *.pdf \
+       *.html \
+       *.dtd \
+       *.oxt \
+       *.png \
+       *.xpi \
+       *.svg \
+       *.exe \
+       *.bin \
+       *.iso \
+       *.wsz \
+       *.wz \
+       patch.* \
+       rescan-scsi-bus.* \
+       bash* \
+       Geo* \
+       code2color \
+       *.support \
+       openssl* \
+       readline* \
+       rfc* \
+       .old/
+
+
+# vim: ts=4 et sw=4