-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
8 lines
539 B
Bash
Executable File
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
|