Add a script to set the release date
This commit is contained in:
parent
a4990e9da5
commit
26c0d6266e
20
scripts/set-release-date
Executable file
20
scripts/set-release-date
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user