|
|
ALT_MIRROR="http://egret.gentoo.org/~gpatches/" | ALT_MIRROR="http://egret.gentoo.org/~gpatches/" |
| |
MUST_SYNC='1' | MUST_SYNC='1' |
|
VERBOSE=0 |
unset PUKE_HELP | unset PUKE_HELP |
for x in $*; do | for x in $*; do |
if [[ $x == "-u" ]]; then | if [[ $x == "-u" ]]; then |
|
|
KEEP_OLDIES='asdf' | KEEP_OLDIES='asdf' |
elif [[ $x == "-h" ]]; then | elif [[ $x == "-h" ]]; then |
PUKE_HELP=1 | PUKE_HELP=1 |
|
elif [[ $x == "-v" ]]; then |
|
VERBOSE=1 |
else | else |
PUKE_HELP=1 | PUKE_HELP=1 |
echo "$x isn't a valid arg. bailing." | echo "$x isn't a valid arg. bailing." |
|
|
if [[ -n $PUKE_HELP ]]; then | if [[ -n $PUKE_HELP ]]; then |
echo "-u for upgrade; sync only if new snapshots are found" | echo "-u for upgrade; sync only if new snapshots are found" |
echo "-k for keep; keep old tree snapshots around" | echo "-k for keep; keep old tree snapshots around" |
|
echo "-v for verbose wget" |
exit -1 | exit -1 |
fi | fi |
done | done |
|
|
cd "$DISTDIR" | cd "$DISTDIR" |
| |
found=0 | found=0 |
if [ "$1" == "-v" ] ; then |
if [ "$VERBOSE" == "1" ] ; then |
wgetops= | wgetops= |
else | else |
#this sucks. probably better to do 1> /dev/null | #this sucks. probably better to do 1> /dev/null |