blob: bc7af09e2b1dd8a21d54c3d298ca583abd758196 (
plain)
1
2
3
4
5
6
7
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
|