2423094597
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
38 lines
754 B
Bash
Executable File
38 lines
754 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Trivial script to rebuild drivers for ABI changes in the server
|
|
# Run me after a new xserver has hit the buildroot
|
|
|
|
builddir="abi-rebuild"
|
|
|
|
if [ -e "$builddir" ]; then
|
|
echo "Path '$builddir' exists. Move out of the way first"
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p $builddir
|
|
pushd $builddir
|
|
|
|
fedpkg co xorg-x11-drivers
|
|
pushd xorg-x11-drivers
|
|
driverlist=$(grep ^Requires *.spec | awk '{ print $2 }')
|
|
popd
|
|
|
|
# Things not in -drivers for whatever reason...
|
|
extradrivers="xorg-x11-drv-ivtv"
|
|
|
|
rm -rf xorg-x11-drivers
|
|
echo $driverlist $extradrivers | xargs -n1 fedpkg co
|
|
|
|
for i in */ ; do
|
|
[ -e $i/dead.package ] && continue
|
|
pushd $i
|
|
rpmdev-bumpspec -c "- ABI rebuild" *.spec
|
|
fedpkg commit -c -p && fedpkg build --nowait
|
|
popd
|
|
done
|
|
|
|
popd
|
|
|
|
|