diff --git a/.gitignore b/.gitignore index 85a9449..3c95c2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/xf86-input-wacom-0.38.0.tar.bz2 +/xf86-input-wacom-*.tar.bz2 diff --git a/commitid b/commitid new file mode 100644 index 0000000..53ee0f1 --- /dev/null +++ b/commitid @@ -0,0 +1 @@ +b61d1711e9a2d6c647341e8ea0119521fd200d62 diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh new file mode 100644 index 0000000..e1f75ba --- /dev/null +++ b/make-git-snapshot.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +DIRNAME=xf86-input-wacom-$( date +%Y%m%d ) + +rm -rf $DIRNAME +#git clone git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/xf86-input-wacom $DIRNAME +git clone https://github.com/linuxwacom/xf86-input-wacom.git $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