OSDN Git Service

Standardize .cmd, .sln and .vcprojx file names (1)
authorGreyMerlin <GreyMerlin7@gmail.com>
Mon, 12 Jun 2017 00:10:24 +0000 (17:10 -0700)
committerGreyMerlin <GreyMerlin7@gmail.com>
Mon, 12 Jun 2017 01:09:22 +0000 (18:09 -0700)
* copy BuildBin.cmd as BuildBin.vs2015.cmd
* copy BuildAll2.cmd as BuildAll.vs2015.cmd
* change all *_vs2015.vcxproj to *.vs2015.vcxproj
* change WinMerge_vs2015.sln to WinMerge.vs2015.sln
* using *.vs2015.* file names from related projects and solutions.

* This commit simply handles file name changes, detailed content
changes will be applied in the next commit

BuildAll.vs2015.cmd [new file with mode: 0644]
BuildBin.vs2015.cmd [new file with mode: 0644]
Externals/poco/Foundation/Foundation.vs2015.vcxproj [moved from Externals/poco/Foundation/Foundation_vs2015.vcxproj with 100% similarity]
Externals/poco/Util/Util.vs2015.vcxproj [moved from Externals/poco/Util/Util_vs2015.vcxproj with 100% similarity]
Externals/poco/XML/XML.vs2015.vcxproj [moved from Externals/poco/XML/XML_vs2015.vcxproj with 100% similarity]
Src/Merge.vs2015.vcxproj [moved from Src/Merge_vs2015.vcxproj with 100% similarity]
Src/MergeLang.vs2015.vcxproj [moved from Src/MergeLang_vs2015.vcxproj with 100% similarity]
Testing/GoogleTest/UnitTests/UnitTests.vs2015.vcxproj [moved from Testing/GoogleTest/UnitTests/UnitTests_vs2015.vcxproj with 100% similarity]
WinMerge.vs2015.sln [moved from WinMerge_vs2015.sln with 100% similarity]

diff --git a/BuildAll.vs2015.cmd b/BuildAll.vs2015.cmd
new file mode 100644 (file)
index 0000000..efda0dc
--- /dev/null
@@ -0,0 +1,4 @@
+cd /d "%~dp0"
+call buildmanual.cmd
+call buildbin.cmd
+call buildarc.cmd
diff --git a/BuildBin.vs2015.cmd b/BuildBin.vs2015.cmd
new file mode 100644 (file)
index 0000000..ecaec84
--- /dev/null
@@ -0,0 +1,33 @@
+cd /d "%~dp0"
+
+del /s Build\*.exe
+del /s BuildTmp\*.res
+
+call SetVersion.cmd
+cscript /nologo ExpandEnvironmenStrings.vbs Version.in > Version.h
+
+setlocal
+call "%VS120COMNTOOLS%vsvars32.bat"
+MSBuild WinMerge.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="Win32" || pause
+MSBuild WinMerge.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="x64" || pause
+endlocal
+
+if exist "%SIGNBAT_PATH%" (
+  call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\WinMergeU.exe
+  call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\MergeLang.dll
+  call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\WinMergeU.exe
+  call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\MergeLang.dll
+)
+
+mkdir Build\MergeUnicodeRelease\%APPVER% 2> NUL
+mkdir Build\x64\MergeUnicodeRelease\%APPVER% 2> NUL
+copy Build\MergeUnicodeRelease\*.pdb "Build\MergeUnicodeRelease\%APPVER%\"
+copy Build\x64\MergeUnicodeRelease\*.pdb "Build\x64\MergeUnicodeRelease\%APPVER%\"
+
+for %%i in ("%ProgramFiles(x86)%" "%ProgramFiles%") do (
+  if exist "%%~i\Inno Setup 5\iscc.exe" (
+    "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge.iss" || pause
+    "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMergeX64.iss" || pause
+  )
+)
+
similarity index 100%
rename from WinMerge_vs2015.sln
rename to WinMerge.vs2015.sln