Show git version numbers - Linux
From OpenSimulator
(Difference between revisions)
												
			| Line 1: | Line 1: | ||
One component required to use this process.    | One component required to use this process.    | ||
| − | UPDATED:   | + | UPDATED: July 12,2010    | 
'''1.''' The revtag.sh shell script    | '''1.''' The revtag.sh shell script    | ||
| Line 7: | Line 7: | ||
'''Usage:'''    | '''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.   The Output will be '''  | + | 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.   The Output will be '''c7a2e1b 2010-07-08 10:17:28 -0700 <br>'''as an example.<br>  | 
For Example:    | For Example:    | ||
| Line 22: | Line 22: | ||
'''The Shell Script:'''  revtag.sh    | '''The Shell Script:'''  revtag.sh    | ||
| − | <blockquote> echo `git log -n 1 --  | + | <blockquote> echo `git log -n 1 --pretty="format:%h %ci"` >bin/.version</blockquote>  | 
| + | --[[User:WhiteStar|WhiteStar]] 11:03, 12 July 2010 (UTC)    | ||
| + | |||
SPECIAL NOTE:   May Not Work with MASTER/HEAD  | SPECIAL NOTE:   May Not Work with MASTER/HEAD  | ||
Revision as of 03:03, 12 July 2010
One component required to use this process.
UPDATED: July 12,2010
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.   The Output will be c7a2e1b 2010-07-08 10:17:28 -0700 
as an example.
For Example:
/OpenSim_GIT
/OpenSim_GIT/opensim
/OpenSim_GIT/opensim/bin
Place this in /OpenSim_GIT/opensim
To run the script use the following command bash revtag.sh
The Shell Script: revtag.sh
echo `git log -n 1 --pretty="format:%h %ci"` >bin/.version
--WhiteStar 11:03, 12 July 2010 (UTC)
SPECIAL NOTE: May Not Work with MASTER/HEAD