Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20965 Details for
Bug 33877
include distfiles-clean into gentoolkit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
distfiles-clean
distfiles-clean (text/plain), 1.39 KB, created by
Hanno Böck
on 2003-11-19 17:04:09 UTC
(
hide
)
Description:
distfiles-clean
Filename:
MIME Type:
Creator:
Hanno Böck
Created:
2003-11-19 17:04:09 UTC
Size:
1.39 KB
patch
obsolete
>#!/bin/sh ># ># distfiles-clean ># ># Cleans unused files from Portage's distfiles directory. ># ># José Fonseca <j_r_fonseca@yahoo.co.uk> > >PROGRAM=`basename "$0"` > >while [ ${#} -gt 0 ] >do > case "$1" in > -h|--help) > USAGE=y > break > ;; > -i|--ignore) > IGNORE="$IGNORE $2" > shift 2 > ;; > -I|--ignore-file) > IGNORE="$IGNORE `cat "$2"`" > shift 2 > ;; > -p|--pretend) > PRETEND=y > shift > ;; > *) > echo "$PROGRAM: Invalid option \'$1\'" 1>&2 > USAGE=y > break > ;; > esac >done > ># For PORTDIR and DISTDIR >. /etc/make.globals >. /etc/make.conf > >if [ "$USAGE" ] >then > echo "Usage: $PROGRAM [-h|--help] [-i|--ignore <glob>] [-I|--ignore-file <globfile>] [-p|--pretend]" > echo "Cleans unused files from $DISTDIR directory." > exit >fi > >DBDIR=/var/db/pkg >CACHEDIR=/var/cache/edb/dep > >for DIR in "$PORTDIR" "$DISTDIR" "$DBDIR" "$CACHEDIR" >do > if [ ! -d "$DIR" ] > then > echo "$PROGRAM: \'$DIR\' not found." > exit > fi >done > >TMPFILE=`mktemp /tmp/$PROGRAM.XXXXXX` > >cd "$DISTDIR" > >{ > echo "cvs-src" > [ "$IGNORE" ] && ls -1d $IGNORE > find "$DBDIR" -name '*.ebuild' | sed -n -e "s:^$DBDIR/\([^/]*\)/\([^/]*\)/\([^/]*\)\.ebuild$:$CACHEDIR/\1/\3:p" | xargs sed -s -e '4!d;/^$/d;s/[[:alnum:]]\+?\|(\|)//g;s/\<[^[:space:]]\+\/\<//g;s/^[[:space:]]\+//g;s/[[:space:]]\+$//g;s/[[:space:]]\+/\n/g' >} | sort -u > "$TMPFILE" && ls -1 | comm -23 - "$TMPFILE" | { > if [ "$PRETEND" ] > then > cat > else > xargs rm -f > fi >} > >rm "$TMPFILE" > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 33877
: 20965 |
25211
|
25290
|
25298
|
25498
|
29493
|
32982
|
53397
|
62807
|
62908
|
67046
|
67047
|
67081
|
67082