From f9e1b77072527c1ab8c9bc6e2116ecd271afb170 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 10 Jul 2023 10:10:30 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 2 +- commitid | 1 + make-git-snapshot.sh | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 commitid create mode 100644 make-git-snapshot.sh 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