Skip to content

Instantly share code, notes, and snippets.

@phillipberndt
Created January 23, 2015 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipberndt/57e317f0b9619943f6d3 to your computer and use it in GitHub Desktop.
Save phillipberndt/57e317f0b9619943f6d3 to your computer and use it in GitHub Desktop.
Build binaries of all xrandr versions
#!/bin/sh
git clone http://cgit.freedesktop.org/xorg/app/xrandr/ || exit 1
cd xrandr || exit 1
for TAG in $(git tag | grep "^xrandr-"); do
git reset --hard HEAD
git clean -fx
git checkout $TAG
mv configure.ac configure.ac~
grep -vE "(m4_ifndef|m4_fatal|XORG_MACROS_VERSION)" configure.ac~ > configure.ac
./autogen.sh
make
mv xrandr ../$TAG
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment