Created
March 30, 2011 03:39
-
-
Save prufrock/893821 to your computer and use it in GitHub Desktop.
uses perl in an awk like manner to increment a version number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
perl -i -pe ';s/(Version: [0-9]+\.[0-9]+\-)([0-9])//; if($1){print $1 . ($2 + 1)}' package/DEBIAN/control |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment