1
0
Fork 0

Write a msbuild xml file with the current version information

This commit is contained in:
Thomas Goyne 2012-11-22 09:57:59 -08:00
parent 3ff6158d85
commit 6ed970ed5b
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@ -67,6 +67,7 @@ svn-revision.h
svn_revision
svnmove.txt
git_version.h
git_version.xml
aegisub/tests/data
aegisub/tests/run
aegisub/tests/*.json

View File

@ -58,3 +58,13 @@ esac
export BUILD_GIT_VERSION_NUMBER="${git_revision}"
export BUILD_GIT_VERSION_STRING="${git_version_str}"
export VERSION_SOURCE="from git"
cat << EOF > build/git_version.xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<GitVersionNumber>${git_revision}</GitVersionNumber>
<GitVersionString>${git_version_str}</GitVersionString>
</PropertyGroup>
</Project>
EOF