Blame SOURCES/make-git-snapshot.sh

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