diff options
author | Jan Rękorajski | 2006-04-26 16:06:03 (GMT) |
---|---|---|
committer | cvs2git | 2012-11-29 22:58:16 (GMT) |
commit | 318aa0c3386ec5b13a14bff2da1a2a06cb54cafb (patch) | |
tree | b4f19c6c0e25e2af9d9e3d17da8914ada8f77cee | |
parent | 7a0595ea207a6843d6549bbbc24eea17d17af9a4 (diff) | |
download | distfiles-318aa0c3386ec5b13a14bff2da1a2a06cb54cafb.zip distfiles-318aa0c3386ec5b13a14bff2da1a2a06cb54cafb.tar.gz |
- a suite for pruning (almost) unused files from distfiles
Changed files:
cleaner/.auto-tags -> 1.1
cleaner/.branches -> 1.1
cleaner/active-list-distfiles -> 1.1
cleaner/lister -> 1.1
cleaner/verified-specs-tags -> 1.1
-rw-r--r-- | cleaner/.auto-tags | 2 | ||||
-rw-r--r-- | cleaner/.branches | 55 | ||||
-rw-r--r-- | cleaner/active-list-distfiles | 0 | ||||
-rw-r--r-- | cleaner/lister | 79 | ||||
-rw-r--r-- | cleaner/verified-specs-tags | 0 |
5 files changed, 136 insertions, 0 deletions
diff --git a/cleaner/.auto-tags b/cleaner/.auto-tags new file mode 100644 index 0000000..f53176c --- /dev/null +++ b/cleaner/.auto-tags @@ -0,0 +1,2 @@ +auto-ac- +auto-th- diff --git a/cleaner/.branches b/cleaner/.branches new file mode 100644 index 0000000..94403ab --- /dev/null +++ b/cleaner/.branches @@ -0,0 +1,55 @@ +HEAD +DEVEL +RA-branch +RA-branch-security +RA-branch_general +RA-branch_security +AC-branch +LINUX_2_6_15 +LINUX_2_6_14 +LINUX_2_6_13 +LINUX_2_6_12 +LINUX_2_6_11 +LINUX_2_6_9 +LINUX_2_6_8 +LINUX_2_6_7 +LINUX_2_6 +LINUX_2_4_STABLE +LINUX_2_4 +LINUX_2_4_31 +LINUX_2_4_30 +LINUX_2_4_28 +LINUX_2_4_27 +LINUX_2_4_26 +APACHE_2_0 +APACHE_2_FOR_RA +GCC3 +GCC31 +GCC32 +GCC323 +GCC4 +GCC_3_4 +GCC_3_5 +GCC_4 +GCC_4_1 +GLIBC_2_2 +GNOME_2_0 +GNOME_2_2 +GNOME_2_4 +GNOME_2_6 +GNOME_2_8 +JAVA14 +LIBVSERVER +MYSQL_3_23 +MYSQL_4_00 +MYSQL_4_1 +PERL +PERL_5_8_0 +PERL_5_8_1 +PERL_5_8_2 +PERL_5_8_4 +PERL_5_8_5 +PERL_5_8_6 +PERL_5_8_7 +X11R6_3 +X11R6_4 diff --git a/cleaner/active-list-distfiles b/cleaner/active-list-distfiles new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/cleaner/active-list-distfiles diff --git a/cleaner/lister b/cleaner/lister new file mode 100644 index 0000000..20bd326 --- /dev/null +++ b/cleaner/lister @@ -0,0 +1,79 @@ +#!/bin/sh + +# Before running this script you have to have full-list-distfiles file +# in current directory +# +# Format of full-list-distfiles file: +# +# cd <path-to-distfiles> +# find by-md5 -type f -printf '%p\n' +# +# DO NOT REMOVE FOLLOWING FILES: +# +# active-list-distfiles +# verified-specs-tags +# + +# +CVSROOT=":pserver:baggins@cvs.pld-linux.org:/cvsroot" +export CVSROOT + +LISTFILES="" + +touch_icons() { + ICONS="`awk '/^Icon:/ {print $2}' ${1}`" + for i in $ICONS ; do + echo GIF87 >$i + done +} + +for TAG in $(cat .branches) ; do + cvs checkout -r "$TAG" SPECS + cvs up -A SPECS/builder + + cd SPECS + for spec in $(find -name "*.spec") ; do + grep -sq "$spec:$TAG" ../verified-specs-tags && continue + touch_icons "$spec" + DF=$(./builder --no-init -sdp -nc -ncs "$spec" || echo $spec >>../list-distfiles-$TAG-errors) + for f in $DF ; do + echo $f | grep -qsE "^by-md5" || continue + echo $f >>../list-distfiles-auto-tags + echo $f.desc >>../list-distfiles-auto-tags + done + echo $spec:$TAG >>../verified-specs-tags + done + LISTFILES="$LISTFILES list-distfiles-$TAG" + cd - + rm -rf SPECS +done + +cvs checkout -r 1.1 SPECS +cvs up -A SPECS/builder +cd SPECS +for spec in $(find -name "*.spec") ; do + TAGS="$(cvs status -v "${spec}" | awk '!/Sticky Tag:/ && /\(branch:/ || /\(revision/ { print $1 } ' | grep -s -f ../.auto-tags | xargs)" + for rev in $TAGS ; do + grep -sq "$spec:$rev" ../verified-specs-tags && continue + cvs up -r $rev $spec + touch_icons "$spec" + DF=$(./builder --no-init -sdp -nc -ncs "$spec" || echo $spec >>../list-distfiles-auto-tags-errors) + for f in $DF ; do + echo $f | grep -qsE "^by-md5" || continue + echo $f >>../list-distfiles-auto-tags + echo $f.desc >>../list-distfiles-auto-tags + done + echo $spec:$rev >>../verified-specs-tags + done +done +LISTFILES="$LISTFILES list-distfiles-auto-tags" +cd - +rm -rf SPECS + +sort $LISTFILES | uniq >>active-list-distfiles +rm -f $LISTFILES + +$D=$(date +%Y-%M-%d) +sort active-list-distfiles full-list-distfiles | uniq -u >distfiles-remove-$D + +cvs commit -m"- $D update" active-list-distfiles verified-specs-tags diff --git a/cleaner/verified-specs-tags b/cleaner/verified-specs-tags new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/cleaner/verified-specs-tags |