aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org>2015-06-07 15:06:55 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org>2015-06-07 15:06:55 +0200
commitc15ccf3840d0ba82d105333b8a8212967af413dd (patch)
tree48a7807851a59ef3902dff850e08a0c9bfe3b195
parent85e7ff2cdccb0e16ef15aad7bb4fa469f82a8410 (diff)
downloadcolorize-c15ccf3840d0ba82d105333b8a8212967af413dd.tar.gz
colorize-c15ccf3840d0ba82d105333b8a8212967af413dd.tar.bz2
Add release preparation script
-rwxr-xr-xrelease.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/release.sh b/release.sh
new file mode 100755
index 0000000..bc7af09
--- /dev/null
+++ b/release.sh
@@ -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