driver-abi-rebuild.sh: add rhpkg awareness
This commit is contained in:
parent
4fdc2c7b4e
commit
528aae170f
@ -13,7 +13,13 @@ fi
|
|||||||
mkdir -p $builddir
|
mkdir -p $builddir
|
||||||
pushd $builddir
|
pushd $builddir
|
||||||
|
|
||||||
fedpkg co xorg-x11-drivers
|
if git config --get remote.origin.url | grep -q redhat.com ; then
|
||||||
|
pkg=rhpkg
|
||||||
|
else
|
||||||
|
pkg=fedpkg
|
||||||
|
fi
|
||||||
|
|
||||||
|
$pkg co xorg-x11-drivers
|
||||||
pushd xorg-x11-drivers
|
pushd xorg-x11-drivers
|
||||||
driverlist=$(grep ^Requires *.spec | awk '{ print $2 }')
|
driverlist=$(grep ^Requires *.spec | awk '{ print $2 }')
|
||||||
popd
|
popd
|
||||||
@ -22,13 +28,13 @@ popd
|
|||||||
extradrivers="xorg-x11-drv-ivtv"
|
extradrivers="xorg-x11-drv-ivtv"
|
||||||
|
|
||||||
rm -rf xorg-x11-drivers
|
rm -rf xorg-x11-drivers
|
||||||
echo $driverlist $extradrivers | xargs -n1 fedpkg co
|
echo $driverlist $extradrivers | xargs -n1 $pkg co
|
||||||
|
|
||||||
for i in */ ; do
|
for i in */ ; do
|
||||||
[ -e $i/dead.package ] && continue
|
[ -e $i/dead.package ] && continue
|
||||||
pushd $i
|
pushd $i
|
||||||
rpmdev-bumpspec -c "- ABI rebuild" *.spec
|
rpmdev-bumpspec -c "- ABI rebuild" *.spec
|
||||||
fedpkg commit -c -p && fedpkg build --nowait
|
$pkg commit -c -p && $pkg build --nowait
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user