Blame SOURCES/make-git-snapshot.sh

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