#3017: updated build and test scripts to support VS 2022
[heuristiclab.git] / PreBuildEvent.sh
blob3f823d840131b09c9b47471e17fee1c560c08f79
1 export AIFile=$ProjectDir/Properties/AssemblyInfo.cs.frame
2 export PluginFile=$ProjectDir/Plugin.cs.frame
4 command_exists () {
5 command -v "$1"
8 if command_exists svnwcrev ; then
9 if [ -f $AIFile ];
10 then
11 svnwcrev $ProjectDir $AIFile $ProjectDir/Properties/AssemblyInfo.cs
14 if [ -f $PluginFile ];
15 then
16 svnwcrev $ProjectDir $PluginFile $ProjectDir/Plugin.cs
18 else
19 if [ -f $AIFile ];
20 then
21 sed 's/\$WCREV\$/'0'/g' $AIFile > $ProjectDir/Properties/AssemblyInfo.cs
24 if [ -f $PluginFile ];
25 then
26 sed 's/\$WCREV\$/'0'/g' $PluginFile > $ProjectDir/Plugin.cs