Show git version numbers - Linux: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>WhiteStar
New page: One component required to use this process. '''1.''' The revtag.sh shell script '''Usage:''' Copy the revtag.sh into the git reposity, immediately above the bin folder. NOTE! is you per...
 
imported>DaveCoyle
m GIT VERSION LINUX moved to Show git version numbers - Linux: Removing gratuitous capitalization. THERE'S NO NEED TO SHOUT.
(No difference)

Revision as of 17:44, 17 September 2009

One component required to use this process.

1. The revtag.sh shell script

Usage:

Copy the revtag.sh into the git reposity, immediately above the bin folder. NOTE! is you perform a git clean this revtag.sh will be removed from the folder structure therefore you will have to copy it back in, I suggest you have a copy of it handy somewhere.

To run the script use the following command bash revtag.sh

The Shell Script:  revtag.sh

echo `git show-ref --tags | tail -1 | sed -e 's,^\(.......\).*/,\1 - r,'` `git log -n 1 --pretty='format:%ci'` > bin/.version