Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Schneider <oliver@assarbad.net>2016-04-20 22:00:24 +0300
committerOliver Schneider <oliver@assarbad.net>2016-04-20 22:00:24 +0300
commita7fb3668eb4c96e322f573f12699d7e2e37cd0a1 (patch)
treed7f9557acecf487e6859c42d6516ee7457754cf3 /release.cmd
parent165d87bae3c97e4e94b24d84c60d8e47da9ba0df (diff)
Adjustments to build process
--HG-- branch : WDS-build
Diffstat (limited to 'release.cmd')
-rw-r--r--release.cmd32
1 files changed, 27 insertions, 5 deletions
diff --git a/release.cmd b/release.cmd
index 248fc7d..c9469fa 100644
--- a/release.cmd
+++ b/release.cmd
@@ -11,15 +11,37 @@ echo #define HG_TIP_REVNO "%HG_TIP_REVNO%" >> %HGTIPFILE%
if exist %HGTIPFILE% type %HGTIPFILE%
vcbuild /rebuild /time Premake4.vs8.sln "Publish|Win32"
"%~dp0bin\release\premake4.exe" embed
-vcbuild /rebuild /time Premake4.vs8.sln "Publish|Win32"
-set NEWNAME=%~dp0premake4.rev-%HG_TIP_REVNO%-%HG_TIP_ID%.exe
-copy /y "%~dp0bin\release\premake4.exe" "%NEWNAME%"
-sigcheck -a "%NEWNAME%"
-gpg2 -bao "%NEWNAME%.asc" "%NEWNAME%"
+call :BuildSignCopyOne "%~dp0" "premake4" "bin\release" "%HG_TIP_REVNO%" "%HG_TIP_ID%" Premake4.vs8.sln Publish Win32
popd & endlocal & goto :EOF
goto :EOF
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::: / SignAndCopyOne subroutine
+::: Copies a
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+:BuildSignCopyOne
+setlocal ENABLEEXTENSIONS
+set BASEPATH=%~1
+set BASENAME=%~2
+set BINDIR=%~3
+set HG_TIP_REVNO=%~4
+set HG_TIP_ID=%~5
+set SLNFILE=%~6
+set SLNCFGNAME=%~7
+set SLNCFGPLTF=%~8
+vcbuild /rebuild /time "%SLNFILE%" "%SLNCFGNAME%|%SLNCFGPLTF%"
+set NEWNAME=%BASEPATH%%BASENAME%.rev-%HG_TIP_REVNO%-%HG_TIP_ID%.exe
+copy /y "%BASEPATH%%BINDIR%\%BASENAME%.exe" "%NEWNAME%"
+sigcheck -a "%NEWNAME%"
+gpg2 --batch --yes -bao "%NEWNAME%.asc" "%NEWNAME%"
+copy /y "%BASEPATH%%BINDIR%\%BASENAME%.exe" "%BASEPATH%%BASENAME%.exe"
+endlocal
+goto :EOF
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::: \ SignAndCopyOne subroutine
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: / SetVar subroutine
::: Param1 == name of the variable, Param2 == value to be set for the variable
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::