aboutsummaryrefslogtreecommitdiffstats
path: root/release.sh
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-10-03 22:45:13 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-10-03 22:45:13 +0200
commit0ffd3036fe3f53cf5e6d25f128c075163b305f68 (patch)
tree6502515a5ceb8d31cb84d3c7dfd2730a3c6f5141 /release.sh
parentf72501505fef26e5ac48fbaa4611f71891f49b38 (diff)
downloadcolorize-0ffd3036fe3f53cf5e6d25f128c075163b305f68.tar.gz
colorize-0ffd3036fe3f53cf5e6d25f128c075163b305f68.tar.bz2
Replace echo command invocations with printf
to be more portable.
Diffstat (limited to 'release.sh')
-rwxr-xr-xrelease.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/release.sh b/release.sh
index bc7af09..f6da284 100755
--- a/release.sh
+++ b/release.sh
@@ -1,8 +1,8 @@
#!/bin/sh
source_file="colorize.c"
man_file="colorize.1"
-echo "Setting version for $source_file"
+printf '%s\n' "Setting version for $source_file"
perl -i -pe 's/(?<=#define VERSION ")([^"]+)(?=")/$1+0.01/e' $source_file
-echo "Setting version for $man_file"
+printf '%s\n' "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