Created
January 28, 2013 00:54
-
-
Save nikicat/4651824 to your computer and use it in GitHub Desktop.
Create git tag from debian/changelog
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/bash | |
# You could optionally swap this lines | |
git checkout `git log -1 --skip 1 debian/changelog | head -1 | sed 's/.* //'` | |
git tag `head -1 debian/changelog | sed 's/^.* (\(.*\)) .*$/v\1/'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment