Skip to content

Instantly share code, notes, and snippets.

@tierra
Created October 23, 2015 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tierra/cfebb9f54cd23516f3d6 to your computer and use it in GitHub Desktop.
Save tierra/cfebb9f54cd23516f3d6 to your computer and use it in GitHub Desktop.
Script used to create v* tags for wxWidgets.
#!/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