Remove non-existing language from 1.34 translation NEWS
[geany-mirror.git] / scripts / version-bump
blob46c1fde294330d0b35718cdf0d1564e1c040540f
1 #!/bin/sh
3 set -e
5 if [ $# -ne 2 ]; then
6 echo "USAGE: $0 VERSION CODENAME" >&2
7 exit 1
8 fi
10 VER=$1
11 FULLVER=$VER
12 CODENAME=$2
14 [ "$(echo "$FULLVER" | grep -o -F . | wc -c)" -lt 3 ] && FULLVER="$FULLVER.0"
16 # update the files
17 sed -e 's/^\(.. |(version)| replace:: \).*$/\1'"$VER"'/' -i doc/geany.txt
18 sed -e 's/^\([ ]*version="\)[^"]*\("\)/\1'"$FULLVER"'.0\2/' -i geany.exe.manifest
20 sed -e '
21 s/^\(#define VER_FILEVERSION *\)[^ ].*$/\1'"$(echo "$FULLVER" | tr . ,)"',0/
22 s/^\(#define VER_FILEVERSION_STR *\)[^ ].*$/\1"'"$VER"'"/
23 ' -i geany_private.rc
25 sed -e 's/^\(AC_INIT([^,]*, *\[\)[^]]*\(\],\)/\1'"$VER"'\2/' -i configure.ac
26 sed -e 's/^\(#define GEANY_CODENAME[ ]*"\)[^"]*\("\)/\1'"$CODENAME"'\2/' -i src/geany.h
28 sed -e '
29 1i Geany '"$VER"' (unreleased)\n\n
30 ' -i NEWS
32 # show commit message to use
33 cat <<EOF
34 Message for the commit, after you have checked the changes:
35 -----------------------------------------------------------
37 Post release version bump
39 Say hello to Geany $VER "$CODENAME"!
40 EOF