Show git version numbers - Linux

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Editted to correct revtag.sh)
(slight syntax fix and expansion on instructions.)
Line 5: Line 5:
 
'''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.&nbsp;&nbsp; The Output will be '''6d3d985 - r11191 '''as an example.<br>
  
To run the script use the following command '''bash revtag.sh'''
+
For Example:
  
'''The Shell Script:'''&nbsp; revtag.sh
+
/OpenSim_GIT
<blockquote>echo `git log -n 1 --decorate --oneline | sed -e 's/,.*$//' -e 's,(r/,- r,'` &gt; bin/.version </blockquote>
+
  
 +
/OpenSim_GIT/opensim
  
 +
/OpenSim_GIT/opensim/bin
  
 +
Place this in '''/OpenSim_GIT/opensim'''
  
--[[User:WhiteStar|WhiteStar]] 16:24, 3 October 2009 (UTC)
+
To run the script use the following command '''bash revtag.sh'''
 +
 
 +
'''The Shell Script:'''&nbsp; revtag.sh
 +
<blockquote>&nbsp;git log -n 1 --decorate --oneline | sed -e s/,.*$//' -e 's,(r/,- r,'` &gt; bin/.version </blockquote>
 +
<br>--[[User:WhiteStar|WhiteStar]] 01:54, 22 October 2009 (UTC)

Revision as of 18:54, 21 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.   The Output will be 6d3d985 - r11191 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

 git log -n 1 --decorate --oneline | sed -e s/,.*$//' -e 's,(r/,- r,'` > bin/.version


--WhiteStar 01:54, 22 October 2009 (UTC)

General
About This Wiki