Created
November 9, 2011 13:23
-
-
Save jbranchaud/1351406 to your computer and use it in GitHub Desktop.
Get the revision number for the HEAD of the repository
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 | |
# This script must be run from within the working copy of the repository | |
# Get the revision number for the HEAD of the repository | |
svn info -r HEAD | awk '/^Revision:/ {print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment