[Reproducible-commits] [blog] 02/04: publish.sh: add --edit-tags option to manually edit tags
Holger Levsen
holger at layer-acht.org
Wed May 18 12:56:46 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 d54d2fc5973d85693931f0b7ff84a70ccef6566c
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed May 18 14:43:15 2016 +0200
publish.sh: add --edit-tags option to manually edit tags
---
bin/publish.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/bin/publish.sh b/bin/publish.sh
index 4c1338f..f1110c9 100755
--- a/bin/publish.sh
+++ b/bin/publish.sh
@@ -8,6 +8,11 @@ if [ "$1" = "-d" ] || [ "$1" = "--dry-run" ] ; then
DRYRUN=true
shift
fi
+EDIT=false
+if [ "$1" = "-e" ] || [ "$1" = "--edit-tags" ] ; then
+ EDIT=true
+ shift
+fi
if [ "$1" = "" ] ; then
echo "need a post number to act on, eg 53"
@@ -80,6 +85,10 @@ elif $DRYRUN ; then
exit 0
fi
+if $EDIT ; then
+ sensible-editor ./drafts/$WEEK.tags
+fi
+
META_TAGS='[[!tag '$(cat ./drafts/$WEEK.tags)']]'
META_DATE='[[!meta date="'$(TZ=UTC LANG=C date +'%a %b %d %H:%M:%S %Y %z')'"]]'
--
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