Stackedit/tools/increment_version

5 lines
135 B
Plaintext
Raw Permalink Normal View History

2013-08-08 21:53:15 +00:00
#!/bin/sh
version_minor=`sed 's/.*-\([0-9]*\)/\1/' version`
((version_minor++))
sed -i '' "s/\(.*-\)[0-9]*/\1$version_minor/" version