Show git version numbers - Linux
From OpenSimulator
(Difference between revisions)
(updated to current tagging info to contnue operations) |
|||
Line 1: | Line 1: | ||
One component required to use this process. | One component required to use this process. | ||
+ | |||
+ | UPDATED: May,13,2010 | ||
'''1.''' The revtag.sh shell script | '''1.''' The revtag.sh shell script | ||
Line 7: | Line 9: | ||
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.<br> | 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.<br> | ||
− | For Example: | + | For Example: |
− | /OpenSim_GIT | + | /OpenSim_GIT |
− | /OpenSim_GIT/opensim | + | /OpenSim_GIT/opensim |
− | /OpenSim_GIT/opensim/bin | + | /OpenSim_GIT/opensim/bin |
− | Place this in '''/OpenSim_GIT/opensim''' | + | Place this in '''/OpenSim_GIT/opensim''' |
To run the script use the following command '''bash revtag.sh''' | To run the script use the following command '''bash revtag.sh''' | ||
'''The Shell Script:''' revtag.sh | '''The Shell Script:''' revtag.sh | ||
− | <blockquote> git log -n 1 --decorate --oneline | sed -e s/,.*$//' -e 's,(r/,- r,' | + | <blockquote> echo 'git log -n 1 --decorate --oneline |sed -e's/ (HEAD, /-/' -e 's/,.*$//' -e 's,(r/,- r,' >bin/.version</blockquote><blockquote>--[[User:WhiteStar|WhiteStar]] 18:46, 13 May 2010 (UTC)</blockquote> |
− | < | + |
Revision as of 10:46, 13 May 2010
One component required to use this process.
UPDATED: May,13,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 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
echo 'git log -n 1 --decorate --oneline |sed -e's/ (HEAD, /-/' -e 's/,.*$//' -e 's,(r/,- r,' >bin/.version
--WhiteStar 18:46, 13 May 2010 (UTC)