2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 11:19:59 +01:00

android: fix ampersand, lt, gt in version generator script

This commit is contained in:
Alibek Omarov 2021-07-03 22:45:14 +03:00
parent 155e766276
commit a4ec54551a

View File

@ -8,8 +8,11 @@ git update-index --assume-unchanged $GIT_REV_XML
echo '<?xml version="1.0" encoding="utf-8"?>' > $GIT_REV_XML
echo '<resources>' >> $GIT_REV_XML
echo -n '<string name="git_revisions">' >> $GIT_REV_XML
echo -n '<b>Version information:</b> ' $*_endl| sed -e s/_endl/'\\n'/ >> $GIT_REV_XML
git submodule --quiet foreach --recursive 'echo -n \<b\>`basename $name`:\</b\>\ `git log --abbrev-commit --pretty=oneline -1` _endl' | sed -e "s|_endl|\\\n|g; s|'|\\\'|g" >> $GIT_REV_XML
echo -n '<b>Version information:</b>\n' >> $GIT_REV_XML
git submodule --quiet foreach --recursive \
'echo -n \<b\>`basename $name`:\</b\>\ \
`git log --abbrev-commit --pretty=oneline -1 | sed "s/\&/\&amp/g;s/>/&gt/g;s/</&lt/g"`\\\\n' \
| sed -e "s|'|\\\'|g" >> $GIT_REV_XML
echo -n $USER@$(hostname) $(date +%H:%M:%S-%d-%m-%y) >> $GIT_REV_XML
echo '</string>' >> $GIT_REV_XML
echo '</resources>' >> $GIT_REV_XML