2016-09-13 20:33:57 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
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\
|
2016-03-02 09:06:16 +01:00
|
|
|
'<b>hlsdk:</b>' $(cd jni/src/hlsdk-xash3d/;git log --abbrev-commit --pretty=oneline -1) _endl\
|
2016-01-18 17:48:37 +01:00
|
|
|
'<b>extras:</b>' $(cd xash-extras/;git log --abbrev-commit --pretty=oneline -1) _endl\
|
2015-08-20 09:30:16 +02:00
|
|
|
'<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
|