test-rebuild: allow building from cwd or existing subdir; builddep on spec file

This commit is contained in:
Jens Petersen 2012-10-05 19:05:57 +09:00
parent 8b059158ba
commit eb601b5e70
1 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
PKG=$1
fedpkg clone -a $PKG
cd $PKG
[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG
sudo yum builddep $PKG
[ -d "$PKG" ] && cd $PKG
sudo yum builddep $PKG.spec
fedpkg local
mkdir -p test