diff --git a/.gitignore b/.gitignore index 3ba7216..9a06e56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -SOURCES/libinput-1.16.3.tar.xz -/libinput-1.16.3.tar.xz +/libinput-*.tar.xz diff --git a/commitid b/commitid new file mode 100644 index 0000000..bb06ca8 --- /dev/null +++ b/commitid @@ -0,0 +1 @@ +58abea394657baba66f6e0cd6c4c27e084bb5b16 diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh new file mode 100644 index 0000000..a61db49 --- /dev/null +++ b/make-git-snapshot.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +DIRNAME=libinput-$( date +%Y%m%d ) + +rm -rf $DIRNAME +git clone git://git.freedesktop.org/git/wayland/libinput $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.xz $DIRNAME +rm -rf $DIRNAME