Commit e8240e46 authored by Sylvain Berfini's avatar Sylvain Berfini

Added build step for windows to set the correct package version

parent dc1f7ac3
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<BELLESIP_PACKAGE_VERSION>1.2.1</BELLESIP_PACKAGE_VERSION>
</PropertyGroup>
<PropertyGroup />
<ItemDefinitionGroup />
<ItemGroup>
<BuildMacro Include="BELLESIP_PACKAGE_VERSION">
<Value>$(BELLESIP_PACKAGE_VERSION)</Value>
</BuildMacro>
</ItemGroup>
</Project>
\ No newline at end of file
This diff is collapsed.
REM define the tools
SET grep_exe=grep.exe
SET sed_exe=sed.exe
REM get the version
SET grep_cmd=%grep_exe% "" ../../../VERSION
FOR /F %%i IN (' %grep_cmd% ') DO SET version=%%i
REM set the version in the props file
%sed_exe% -i.bak "s/BELLESIP_PACKAGE_VERSION>[0-9.]*</BELLESIP_PACKAGE_VERSION>%version%</g" belle-sip.props
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment