2015-08-20 08:13:01 +02:00
|
|
|
git update-index --assume-unchanged res/values/git-rev.xml
|
2015-08-20 07:28:00 +02:00
|
|
|
echo '<?xml version="1.0" encoding="utf-8"?>' > res/values/git-rev.xml
|
|
|
|
echo '<resources>' >> res/values/git-rev.xml
|
2015-08-20 09:30:16 +02:00
|
|
|
echo -n '<string name="git_revisions">' >> res/values/git-rev.xml
|
2015-08-20 10:59:11 +02:00
|
|
|
echo -n '<b>Version information:</b> ' $*_endl| sed -e s/_endl/'\\n'/ >> res/values/git-rev.xml
|
2015-08-20 09:30:16 +02:00
|
|
|
echo -n '<b>android:</b>' $(git log --abbrev-commit --pretty=oneline -1) _endl\
|
|
|
|
'<b>engine:</b>' $(cd jni/src/Xash3D/*/;git log --abbrev-commit --pretty=oneline -1) _endl\
|
|
|
|
'<b>client:</b>' $(cd jni/src/XashXT/*/;git log --abbrev-commit --pretty=oneline -1) _endl\
|
|
|
|
'<b>halflife:</b>' $(cd jni/src/HLSDK/*/;git log --abbrev-commit --pretty=oneline -1) _endl\
|
|
|
|
'<b>SDL2:</b>' $(cd jni/src/SDL2/*/;git log --abbrev-commit --pretty=oneline -1) _endl\
|
|
|
|
'<b>TouchControls:</b>' $(cd jni/src/MobileTouchControls/*/;git log --abbrev-commit --pretty=oneline -1) _endl\
|
|
|
|
'<b>nanogl:</b>' $(cd jni/src/NanoGL/*/;git log --abbrev-commit --pretty=oneline -1)_endl\
|
2015-08-20 10:59:11 +02:00
|
|
|
| sed -e s/\'//g -e s/_endl/'\\n'/g >> res/values/git-rev.xml
|
|
|
|
echo -n $USER@$(hostname) $(date +%H:%M:%S-%d-%m-%y) >> res/values/git-rev.xml
|
2015-08-20 07:28:00 +02:00
|
|
|
echo '</string>' >> res/values/git-rev.xml
|
|
|
|
echo '</resources>' >> res/values/git-rev.xml
|
2015-08-20 08:38:55 +02:00
|
|
|
cat res/values/git-rev.xml
|