diff --git a/.gitignore b/.gitignore index bf631d9..2c6eedc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/xkeyboard-config-2.28.tar.bz2 +/xkeyboard-config-.*.tar.bz2 diff --git a/commitid b/commitid new file mode 100644 index 0000000..572511e --- /dev/null +++ b/commitid @@ -0,0 +1 @@ +19a0026b5a8bd01cfc21bc8c7342e1c4f4567161 diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh new file mode 100644 index 0000000..86476ee --- /dev/null +++ b/make-git-snapshot.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +MODULE=xkeyboard-config +DIRNAME=$MODULE-$( date +%Y%m%d ) + +rm -rf $DIRNAME +git clone git://git.freedesktop.org/git/$MODULE $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.bz2 $DIRNAME +rm -rf $DIRNAME