Skip to content

Instantly share code, notes, and snippets.

@mahnve
Created February 10, 2011 14:37
Show Gist options
  • Select an option

  • Save mahnve/820611 to your computer and use it in GitHub Desktop.

Select an option

Save mahnve/820611 to your computer and use it in GitHub Desktop.
Script for tagging a release in svn
#!/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