diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-11-12 08:40:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-11-12 08:40:17 +0000 |
commit | 08fd32e835a33107234c98dececad200f8cf5a13 (patch) | |
tree | a9def4bca9cc97a28743669e4174faf075602f9f /scripts/update-gcc | |
parent | update (diff) | |
download | toolchain-08fd32e835a33107234c98dececad200f8cf5a13.tar.gz toolchain-08fd32e835a33107234c98dececad200f8cf5a13.tar.bz2 toolchain-08fd32e835a33107234c98dececad200f8cf5a13.zip |
dont run sudo by default and make sure to delete "list" before manifst
Diffstat (limited to 'scripts/update-gcc')
-rwxr-xr-x | scripts/update-gcc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/update-gcc b/scripts/update-gcc index 4249bd1..d21ccdb 100755 --- a/scripts/update-gcc +++ b/scripts/update-gcc @@ -1,6 +1,9 @@ #!/bin/bash -e +sudo= + [ -d sys-devel ] && cd sys-devel/gcc +[ -d ../sys-devel ] && cd ../sys-devel/gcc if [ ! -e metadata.xml ] ; then echo "Run this in the gcc dir" exit 1 @@ -8,6 +11,8 @@ fi export FEATURES="assume-digests -strict" +date + lynx -dump ftp://sources.redhat.com/pub/gcc/snapshots > list major=$(grep /LATEST list | cut -d- -f2) @@ -23,10 +28,10 @@ for m in ${major} ; do [ -e ${s} ] && continue echo " ${s}" cp ${curr} ${s} - sudo env GENTOO_MIRRORS=" " FEATURES="${FEATURES}" ebuild ${s} fetch + $sudo env GENTOO_MIRRORS=" " FEATURES="${FEATURES}" ebuild ${s} fetch done done -sudo ebuild ${s} manifest - rm -f list + +$sudo ebuild ${s} manifest |