libinput/make-git-snapshot.sh
Peter Hutterer 74f54234a0 Add the hooks to build from a git snapshot
- Disable silent rules
- Update to today's git master
2014-11-24 14:26:20 +10:00

18 lines
337 B
Bash
Executable File

#!/bin/sh
DIRNAME=libinput-$( date +%Y%m%d )
rm -rf $DIRNAME
git clone git://git.freedesktop.org/git/wayland/libinput $DIRNAME
cd $DIRNAME
if [ -z "$1" ]; then
git log | head -1
else
git checkout $1
fi
git log | head -1 | awk '{ print $2 }' > ../commitid
git repack -a -d
cd ..
tar jcf $DIRNAME.tar.xz $DIRNAME
rm -rf $DIRNAME