Blame SOURCES/make-git-snapshot.sh

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