Created
October 23, 2015 00:58
-
-
Save tierra/cfebb9f54cd23516f3d6 to your computer and use it in GitHub Desktop.
Script used to create v* tags for wxWidgets.
This file contains hidden or 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 | |
for t in $(git tag -l | grep -v '@' | egrep '^(WX_[23]_[0-9]_[0-9])'); do | |
export GIT_COMMITTER_DATE=$(git log -1 --format=%ad $(echo $t)) | |
VTAG=$(echo $t | sed -e 's/WX_2_4_0_CANDIDATE/WX_2_4_0-rc1/;s/2rc/2-rc/;s/_rc/-rc/;s/^WX_/v/;s/_/\./g;') | |
echo "Tagging $t as $VTAG with $GIT_COMMITTER_DATE" | |
git tag -m "Release $VTAG." $VTAG $t; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment