Created
February 10, 2011 14:37
-
-
Save mahnve/820611 to your computer and use it in GitHub Desktop.
Script for tagging a release in svn
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.sh (press RETURN) | |
| cd ~/svn-trunk | |
| # Get the SVN commit message from the git log | |
| COMMIT_MESSAGE=`git log -1 --format=oneline` | |
| RELEASE_TAG=`date +%Y_%m_%d_%k_%M` | |
| echo $RELEASE_TAG | |
| RELEASE_URL="https://intrawww.x.ngm.se/ngnews-svn/tags/REL_"$RELEASE_TAG | |
| echo $RELEASE_URL | |
| # Commit to svn | |
| svn copy https://intrawww.x.ngm.se/ngnews-svn/trunk $RELEASE_URL -m $RELEASE_TAG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment