]> git.refcnt.org Git - colorize.git/commitdiff
Add release preparation script
authorSteven Schubiger <stsc@refcnt.org>
Sun, 7 Jun 2015 13:06:55 +0000 (15:06 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 7 Jun 2015 13:06:55 +0000 (15:06 +0200)
release.sh [new file with mode: 0755]

diff --git a/release.sh b/release.sh
new file mode 100755 (executable)
index 0000000..bc7af09
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+source_file="colorize.c"
+man_file="colorize.1"
+echo "Setting version for $source_file"
+perl -i -pe 's/(?<=#define VERSION ")([^"]+)(?=")/$1+0.01/e' $source_file
+echo "Setting version for $man_file"
+perl -i -pe 's/(?<=\.TH COLORIZE 1 "\d{4}-\d{2}-\d{2}" "colorize v)([^"]+)(?=")/$1+0.01/e' $man_file
+exit 0