diff options
author | Michel Alexandre Salim <msalim@cs.indiana.edu> | 2009-08-21 18:31:44 -0400 |
---|---|---|
committer | Michel Alexandre Salim <msalim@cs.indiana.edu> | 2009-08-21 18:31:44 -0400 |
commit | 3eb5e89144be7d88ebb185f79e77950f305711e4 (patch) | |
tree | cd55b43266ddc84352629adb5723922de3b29aab /update-srpm.sh | |
parent | da59bf44c6bb64a8d03649d1adc25ed3fb2e772d (diff) | |
download | specs-3eb5e89144be7d88ebb185f79e77950f305711e4.tar.gz specs-3eb5e89144be7d88ebb185f79e77950f305711e4.tar.xz specs-3eb5e89144be7d88ebb185f79e77950f305711e4.zip |
Updated SRPM script
Diffstat (limited to 'update-srpm.sh')
-rwxr-xr-x | update-srpm.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/update-srpm.sh b/update-srpm.sh index 499741a..0348bea 100755 --- a/update-srpm.sh +++ b/update-srpm.sh @@ -1,6 +1,11 @@ #!/bin/sh DIR=`dirname $1` PKGNAME=`basename $1 | sed -e 's|.spec$||'` -rm -i $DIR/$PKGNAME-*.src.rpm + +for srpm in $DIR/$PKGNAME-*.src.rpm; do + rm -i $srpm + fedora "rm -i public_html/specs/$srpm" +done + rpmbuild -bs $1 && mv ~/rpmbuild/SRPMS/$PKGNAME*.src.rpm $DIR/ \ && ./upload.sh $DIR/$PKGNAME-*.src.rpm |