Commit 13774a02 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fix version.bat script for windows phone

parent 8e663696
<?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>
<?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.4"</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
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
REM define the tools
SET grep_exe=grep.exe
SET sed_exe=sed.exe
REM get the version
FOR /F %%i IN (' %grep_exe% "AC_INIT(" ../../../configure.ac ^| %sed_exe% -e "s/.*belle-sip\]//" ^| %sed_exe% -e "s/].*//" ^| %sed_exe% -e "s/.*\[//" ') DO SET version=%%i
REM set the version in the props file
REM %sed_exe% -i.bak "s/BELLESIP_PACKAGE_VERSION>\"[0-9.]*\"</BELLESIP_PACKAGE_VERSION>\"%version%\"</g" belle-sip.props
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