From b1203a2530e0ddd408066ac6eaed27e180238b22 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 24 Oct 2013 11:58:07 -0400 Subject: [PATCH] Add branch awareness to driver-abi-rebuild.sh Signed-off-by: Adam Jackson --- driver-abi-rebuild.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/driver-abi-rebuild.sh b/driver-abi-rebuild.sh index 57e1827..34add3d 100755 --- a/driver-abi-rebuild.sh +++ b/driver-abi-rebuild.sh @@ -19,7 +19,13 @@ else pkg=fedpkg fi -$pkg co xorg-x11-drivers +# figure out the branch we're on +branch=$(git branch | awk '/^\*/ { print $2 }' | grep -v '^master$') +if [ $branch ]; then + branch="-b $branch" +fi + +$pkg co $branch xorg-x11-drivers pushd xorg-x11-drivers driverlist=$(grep ^Requires *.spec | awk '{ print $2 }') popd @@ -28,7 +34,7 @@ popd extradrivers="xorg-x11-drv-ivtv" rm -rf xorg-x11-drivers -echo $driverlist $extradrivers | xargs -n1 $pkg co +echo $driverlist $extradrivers | xargs -n1 $pkg co $branch for i in */ ; do [ -e $i/dead.package ] && continue