Files
Vocaluxe/Vocaluxe/Linux/Build/PostBuildEvent.sh
T
lukeIam 9d4a420ea2 -Mod: New versioning scheme including type if type!=release
-Mod: Show the same version tag everywhere
-Mod: Automatically determinate release type depending on the new version-tag
-Mod: Automatically determinate CodeName
-Add: Code-name for the 0.4. releases
2016-12-12 21:01:41 +01:00

8 lines
539 B
Bash
Executable File

#!/bin/sh
PROJECT=$1
cd $PROJECT
sed -i -r -e 's/AssemblyInformationalVersion\(".*?"\)/AssemblyInformationalVersion("GITVERSION")/' $PROJECT/Properties/AssemblyInfo.cs
sed -i -r -e 's/AssemblyVersion\(".*?"\)/AssemblyVersion("SHORTVERSION")/' $PROJECT/Properties/AssemblyInfo.cs
sed -i -r -e 's/AssemblyFileVersion\(".*?"\)/AssemblyFileVersion("SHORTVERSION")/' $PROJECT/Properties/AssemblyInfo.cs
sed -i -e 's/var matchingServerVersion = "";/var matchingServerVersion = "'$(git describe --long)'";/' $PROJECT/../Output/Website/js/main.js