[geany/geany] 26c0d6: Add a script to set the release date

Colomban Wendling git-noreply at geany.org
Sun Nov 13 18:04:37 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 13 Nov 2016 18:04:37 UTC
Commit:      26c0d6266eea68d715254fd3a4439a9a9e8789a1
             https://github.com/geany/geany/commit/26c0d6266eea68d715254fd3a4439a9a9e8789a1

Log Message:
-----------
Add a script to set the release date


Modified Paths:
--------------
    scripts/set-release-date

Modified: scripts/set-release-date
20 lines changed, 20 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+export LANG=C
+
+DATE=${1:-now}
+
+# update the files
+sed -e '1s/([^)]*)/('"$(date -d "$DATE" +'%B %d, %Y')"')/' -i NEWS
+sed -e '1s/^\(.TH "[^"]*" "[^"]*" "\)[^"]*\("\)/\1'"$(date -d "$DATE" +'%B %d, %Y')"'\2/' -i doc/geany.1.in
+sed -e 's/^\(:Date: \).*$/\1'"$(date -d "$DATE" +'%Y-%m-%d')"'/' -i doc/geany.txt
+
+# show commit message to use
+cat <<EOF
+Message for the commit, after you have checked the changes:
+-----------------------------------------------------------
+
+Set release date
+EOF



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list