driver-abi-rebuild: bail out if target directory already exists

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-03-07 11:26:04 +10:00
parent cd9fdcb079
commit 2423094597

View File

@ -3,8 +3,15 @@
# Trivial script to rebuild drivers for ABI changes in the server
# Run me after a new xserver has hit the buildroot
mkdir -p abi-rebuild
pushd abi-rebuild
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