[Reproducible-commits] [blog] 01/03: Add more tags and find tags harder

Ximin Luo infinity0 at debian.org
Tue Aug 9 12:56:33 UTC 2016


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

infinity0 pushed a commit to branch master
in repository blog.

commit 3505824fd4e70ef8d9b3e5bd911371fdc3240b05
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue Aug 9 14:46:51 2016 +0200

    Add more tags and find tags harder
---
 bin/publish.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/publish.sh b/bin/publish.sh
index 86b988b..64a2cfd 100755
--- a/bin/publish.sh
+++ b/bin/publish.sh
@@ -32,19 +32,19 @@ fi
 
 if [ ! -f ./drafts/$WEEK.tags ] ; then
 	# these are grep'ed for case sensitive
-	KNOWN_TAGS="ArchLinux Athens build_kernel_architecture build_locale cdbs clang Clang coreboot DebConf16 debhelper diffoscope disorderfs documentation dpkg Fedora FreeBSD GCC gcc GSoC gzip installation libxslt live_media MacPorts maven NetBSD OpenWrt ordering Outreachy popcon project_infrastructure python reprotest source_date_epoch SOURCE_DATE_EPOCH sphinx strip-nondeterminism txt2man Ubuntu umask openSUSE tails"
-	# these "special" words needs to be seperated by spaces (and are also case sensitive…)
+	KNOWN_TAGS="ArchLinux Athens buildinfo build_kernel_architecture build_locale cdbs clang Clang coreboot DebConf16 debhelper diffoscope disorderfs documentation dpkg Fedora FreeBSD GCC gcc GSoC gzip installation jenkins.debian.net libxslt live_media MacPorts maven NetBSD OpenWrt ordering Outreachy popcon project_infrastructure python reprotest sbuild source_date_epoch SOURCE_DATE_EPOCH sphinx strip-nondeterminism Test_infrastructure test_infrastructure txt2man Ubuntu umask openSUSE tails"
+	# these "special" words needs to be seperated by word boundaries (and are also case sensitive…)
 	KNOWN_SPECIAL_TAGS="dak luatex pdftex Tar tar TAILS texlive-bin TeX tex Qt"
 	# all posts are tagged:
 	MY_TAGS="reproducible_builds Debian"
 
 	for TAG in $KNOWN_TAGS ; do
-		if [ -n "$(grep $TAG $DRAFT 2>/dev/null)" ] ; then
+		if [ -n "$(tr '\n' ' ' <$DRAFT | grep "${TAG/_/[_ ]}" 2>/dev/null)" ] ; then
 			MY_TAGS="$MY_TAGS $TAG"
 		fi
 	done
 	for TAG in $KNOWN_SPECIAL_TAGS ; do
-		if [ -n "$(grep " $TAG " $DRAFT 2>/dev/null)" ] ; then
+		if [ -n "$(tr '\n' ' ' <$DRAFT | grep "\\b${TAG}\\b" 2>/dev/null)" ] ; then
 			MY_TAGS="$MY_TAGS $TAG"
 		fi
 	done

-- 
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