2011-11-09 22:52:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Trivial script to rebuild drivers for ABI changes in the server
|
|
|
|
# Run me after a new xserver has hit the buildroot
|
|
|
|
|
2011-11-11 22:50:15 +00:00
|
|
|
mkdir -p abi-rebuild
|
2011-11-09 22:52:14 +00:00
|
|
|
pushd abi-rebuild
|
|
|
|
|
2013-01-09 23:20:13 +00:00
|
|
|
fedpkg co xorg-x11-drivers
|
|
|
|
pushd xorg-x11-drivers
|
|
|
|
driverlist=$(grep ^Requires *.spec | awk '{ print $2 }')
|
|
|
|
popd
|
|
|
|
|
|
|
|
rm -rf xorg-x11-drivers
|
|
|
|
echo $driverlist | xargs -n1 fedpkg co
|
|
|
|
|
2011-11-09 22:52:14 +00:00
|
|
|
for i in */ ; do
|
2011-11-11 22:50:15 +00:00
|
|
|
[ -e $i/dead.package ] && continue
|
2011-11-09 22:52:14 +00:00
|
|
|
pushd $i
|
2011-11-11 22:50:15 +00:00
|
|
|
rpmdev-bumpspec -c "- ABI rebuild" *.spec
|
2011-11-09 22:52:14 +00:00
|
|
|
fedpkg commit -c -p && fedpkg build --nowait
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|