From 97f60804030771d34d80d489fa3c12c63bc10326 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 12 Jan 2006 20:29:15 +0000 Subject: [PATCH] Don't rebuild switch_version.h everytime, only when it changes. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@330 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- w32/vsnet/FreeSwitchCore.vcproj | 4 ---- w32/vsnet/GetLibs.vbs | 17 ++++++++++++++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/w32/vsnet/FreeSwitchCore.vcproj b/w32/vsnet/FreeSwitchCore.vcproj index b01748eb10..144f897972 100644 --- a/w32/vsnet/FreeSwitchCore.vcproj +++ b/w32/vsnet/FreeSwitchCore.vcproj @@ -315,10 +315,6 @@ RelativePath="..\..\src\include\switch_utils.h" > - - sLastVersion Then + Set MyFile = fso.CreateTextFile(UtilsDir & "lastversion", True) + MyFile.WriteLine(VERSION) + MyFile.Close + + FSO.CopyFile FreeswitchDir & "src\include\switch_version.h.in", FreeswitchDir & "src\include\switch_version.h", true + FindReplaceInFile FreeswitchDir & "src\include\switch_version.h", "@SVN_VERSION@", VERSION + End If - FindReplaceInFile FreeswitchDir & "src\include\switch_version.h", "@SVN_VERSION@", VERSION If Not FSO.FolderExists(LibDestDir & "include") Then FSO.CreateFolder(LibDestDir & "include")