[Reproducible-commits] [blog] 01/02: introduce a 2nd method to detect tags

Holger Levsen holger at layer-acht.org
Sun May 1 11:32:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository blog.

commit 1cae7d11f1993d05b9bbf0464ab68f1ed8a85168
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun May 1 13:30:27 2016 +0200

    introduce a 2nd method to detect tags
---
 bin/guess_tags.sh | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/bin/guess_tags.sh b/bin/guess_tags.sh
index 3bc11ca..4b1b4b8 100755
--- a/bin/guess_tags.sh
+++ b/bin/guess_tags.sh
@@ -21,8 +21,11 @@ elif [ -f ./drafts/$WEEK.tags ] ; then
 	exit 1
 fi
 
-KNOWN_TAGS="ArchLinux build_kernel_architecture build_locale clang coreboot diffoscope dpkg Fedora FreeBSD GCC GSoC installation live_media MacPort NetBSD OpenWrt Outreachy source_date_epoch SOURCE_DATE_EPOCH sphinx tails tar disorderfs strip-determinism"
-
+# these are grep'ed for case sensitive
+KNOWN_TAGS="ArchLinux build_kernel_architecture build_locale clang coreboot diffoscope dpkg Fedora FreeBSD GCC GSoC installation live_media MacPort NetBSD OpenWrt Outreachy source_date_epoch SOURCE_DATE_EPOCH sphinx tails disorderfs strip-determinism"
+# these "special" words needs to be seperated by spaces (and are also case sensitive…)
+KNOWN_SPECIAL_TAGS="Tar tar"
+# all posts are tagged:
 MY_TAGS="reproducible_builds"
 
 for TAG in $KNOWN_TAGS ; do
@@ -30,6 +33,11 @@ for TAG in $KNOWN_TAGS ; do
 		MY_TAGS="$MY_TAGS $TAG"
 	fi
 done
+for TAG in $KNOWN_SPECIAL_TAGS ; do
+	if [ -n "$(grep " $TAG " $DRAFT 2>/dev/null)" ] ; then
+		MY_TAGS="$MY_TAGS $TAG"
+	fi
+done
 
 if [ ! -f ./drafts/$WEEK.tags ] ; then
 	if ! $DRYRUN ; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/blog.git



More information about the Reproducible-commits mailing list