mirror of
https://github.com/gpac/gpac.git
synced 2026-01-12 00:05:22 +08:00
Fix for version.h generation
git-svn-id: http://svn.code.sf.net/p/gpac/code/trunk/gpac@2721 63c20433-aa62-49bd-875c-5a186b69a8fb
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="for /f "delims=" %%a in ('svnversion') do echo #define GPAC_SVN_REVISION "%%a" > test.h & ECHO n|COMP test.h include\gpac\version.h > nul & if errorlevel 1 COPY test.h include\gpac\version.h & DEL test.h"
|
||||
CommandLine="$(InputDir)..\..\version.bat"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -107,7 +107,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="for /f "delims=" %%a in ('svnversion') do echo #define GPAC_SVN_REVISION "%%a" > test.h & ECHO n|COMP test.h include\gpac\version.h > nul & if errorlevel 1 COPY test.h include\gpac\version.h & DEL test.h"
|
||||
CommandLine="$(InputDir)..\..\version.bat"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -191,7 +191,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="@echo off & cd ..\.. & for /f "delims=" %%a in ('svnversion') do echo #define GPAC_SVN_REVISION "%%a" > test.h & ECHO n|COMP test.h include\gpac\version.h > nul & if errorlevel 1 COPY test.h include\gpac\version.h & DEL test.h"
|
||||
CommandLine="$(InputDir)..\..\version.bat"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -268,7 +268,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="for /f "delims=" %%a in ('svnversion') do echo #define GPAC_SVN_REVISION "%%a" > test.h & ECHO n|COMP test.h include\gpac\version.h > nul & if errorlevel 1 COPY test.h include\gpac\version.h & DEL test.h"
|
||||
CommandLine="$(InputDir)..\..\version.bat"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="cd ..\.. & for /f "delims=" %%a in ('svnversion') do echo #define GPAC_SVN_REVISION "%%a" > test.h & ECHO n|COMP test.h include\gpac\version.h > nul & if errorlevel 1 MOVE test.h include\gpac\version.h"
|
||||
CommandLine="$(InputDir)..\..\version.bat"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
@@ -108,7 +108,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="cd ..\.. & for /f "delims=" %%a in ('svnversion') do echo #define GPAC_SVN_REVISION "%%a" > test.h & ECHO n|COMP test.h include\gpac\version.h > nul & if errorlevel 1 MOVE test.h include\gpac\version.h"
|
||||
CommandLine="$(InputDir)..\..\version.bat"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
|
||||
10
version.bat
Normal file
10
version.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
for /f "delims=" %%a in ('svnversion') do echo #define GPAC_SVN_REVISION "%%a" > test.h
|
||||
if not exist include\gpac\version.h goto create
|
||||
ECHO n|COMP test.h include\gpac\version.h > nul
|
||||
if errorlevel 1 goto create
|
||||
DEL test.h
|
||||
exit/b
|
||||
:create
|
||||
MOVE /Y test.h include\gpac\version.h
|
||||
Reference in New Issue
Block a user