[Reproducible-commits] [blog] 02/02: detect more tags and capitalize them as we want
Holger Levsen
holger at layer-acht.org
Mon May 16 13:10:44 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 a0266e3bba9a730fadc13c64950a3f8fa235fb67
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon May 16 15:09:26 2016 +0200
detect more tags and capitalize them as we want
---
bin/guess_tags.sh | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/bin/guess_tags.sh b/bin/guess_tags.sh
index 3301e91..3f8c6cb 100755
--- a/bin/guess_tags.sh
+++ b/bin/guess_tags.sh
@@ -22,7 +22,7 @@ elif [ -f ./drafts/$WEEK.tags ] ; then
fi
# 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 MacPorts maven NetBSD OpenWrt Outreachy source_date_epoch SOURCE_DATE_EPOCH disorderfs strip-determinism DebConf16"
+KNOWN_TAGS="ArchLinux build_kernel_architecture build_locale clang coreboot diffoscope dpkg Fedora FreeBSD GCC gcc GSoC installation live_media MacPorts maven NetBSD OpenWrt Outreachy source_date_epoch SOURCE_DATE_EPOCH disorderfs strip-determinism DebConf16 libxslt cdbs Ubuntu"
# these "special" words needs to be seperated by spaces (and are also case sensitive…)
KNOWN_SPECIAL_TAGS="Tar tar sphinx TAILS texlive-bin pdftex luatex tex dak"
# all posts are tagged:
@@ -35,13 +35,23 @@ for TAG in $KNOWN_TAGS ; do
done
for TAG in $KNOWN_SPECIAL_TAGS ; do
if [ -n "$(grep " $TAG " $DRAFT 2>/dev/null)" ] ; then
- if [ "$TAG" = "Tar" ] ; then
- MY_TAGS="$MY_TAGS tar"
- else
- MY_TAGS="$MY_TAGS $TAG"
- fi
+ MY_TAGS="$MY_TAGS $TAG"
+ fi
+done
+
+# force capitalisation as we want it
+MY_FINAL_TAGS=""
+for TAG in $MY_TAGS ; do
+ if [ "$TAG" = "Tar" ] ; then
+ MY_FINAL_TAGS="$MY_FINAL_TAGS tar"
+ elif [ "$TAG" = "gcc" ] ; then
+ MY_FINAL_TAGS="$MY_FINAL_TAGS GCC"
+ else
+ MY_FINAL_TAGS="$MY_FINAL_TAGS $TAG"
fi
done
+# echo is used to remove the prefixing whitespace
+MY_TAGS=$(echo $MY_FINAL_TAGS)
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