Show git version numbers - Linux
From OpenSimulator
(Difference between revisions)
												
			m (GIT VERSION LINUX moved to Show git version numbers - Linux: Removing gratuitous capitalization.  THERE'S NO NEED TO SHOUT.)  | 
			 (Editted to correct revtag.sh)  | 
			||
| Line 1: | Line 1: | ||
| − | One component required to use this process.  | + | One component required to use this process.    | 
| − | '''1.''' The revtag.sh shell script  | + | '''1.''' The revtag.sh shell script    | 
| − | '''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.    | 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   | + | To run the script use the following command '''bash revtag.sh'''    | 
| − | '''The Shell Script:'''  revtag.sh  | + | '''The Shell Script:'''  revtag.sh    | 
| − | <blockquote>  | + | <blockquote>echo `git log -n 1 --decorate --oneline | sed -e 's/,.*$//' -e 's,(r/,- r,'` > bin/.version </blockquote>  | 
| − | echo `git   | + | |
| − | </blockquote>  | + | |
| + | |||
| + | |||
| + | --[[User:WhiteStar|WhiteStar]] 16:24, 3 October 2009 (UTC)  | ||
Revision as of 08:24, 3 October 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 log -n 1 --decorate --oneline | sed -e 's/,.*$//' -e 's,(r/,- r,'` > bin/.version
--WhiteStar 16:24, 3 October 2009 (UTC)