From 19b6f534d2e784a1e120bf52c4aa07004798f473 Mon Sep 17 00:00:00 2001 From: kreol13 Date: Thu, 21 Apr 2011 13:03:39 +0000 Subject: initial commit git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@6 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- userinfoex/_publishbin.cmd | 65 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 userinfoex/_publishbin.cmd (limited to 'userinfoex/_publishbin.cmd') diff --git a/userinfoex/_publishbin.cmd b/userinfoex/_publishbin.cmd new file mode 100644 index 0000000..80d3e33 --- /dev/null +++ b/userinfoex/_publishbin.cmd @@ -0,0 +1,65 @@ +@echo off + +:if %1 == "" goto USAGE +:if %2 == "" goto USAGE +:if %3 NEQ "" goto USAGE + +SET OUT_BASE=publish + +: Prepare Release for publication +SET BUILT=%1 +SET VER=%2 + +SET IN_ICON=%BUILT%\Icons +SET IN_PLUG=%BUILT%\Plugins +SET OUT_PATH=%OUT_BASE%\%VER%\%BUILT% +SET OUT_DOCS=%OUT_PATH%\Docs +SET OUT_DOCS_UINFOEX=%OUT_DOCS%\uinfoex +SET OUT_ICON=%OUT_PATH%\Icons +SET OUT_PLUG=%OUT_PATH%\Plugins +SET OUT_SOUND=%OUT_PATH%\Sounds + +: Create folder structure +if not exist %OUT_BASE% mkdir %OUT_BASE% +if not exist %OUT_BASE%\%VER% mkdir %OUT_BASE%\%VER% +if not exist %OUT_PATH% mkdir %OUT_PATH% +if not exist %OUT_DOCS% mkdir %OUT_DOCS% +if not exist %OUT_DOCS_UINFOEX% mkdir %OUT_DOCS_UINFOEX% +if not exist %OUT_ICON% mkdir %OUT_ICON% +if not exist %OUT_PLUG% mkdir %OUT_PLUG% +if not exist %OUT_SOUND% mkdir %OUT_SOUND% + +: Copy binary files +copy /y %IN_ICON%\uinfoex_icons.dll %OUT_ICON% > nul +if not errorlevel 0 goto MISSING +copy /y %IN_PLUG%\uinfoex?.dll %OUT_PLUG% > nul +if not errorlevel 0 goto MISSING +copy /y changelog.txt %OUT_DOCS_UINFOEX% > nul +if not errorlevel 0 goto MISSING +copy /y docs\uinfoex_translate.txt %OUT_DOCS_UINFOEX% > nul +if not errorlevel 0 goto MISSING +copy /y sdk\m_userinfoex.h %OUT_DOCS_UINFOEX% > nul +if not errorlevel 0 goto MISSING +copy /y sounds\*.wav %OUT_SOUND% > nul +if not errorlevel 0 goto MISSING + +echo Fertig! +goto END + +:MISSING +echo Missing required file! +goto END + +:USAGE +echo. +echo =============================================================================== +echo UserInfoEx Postbuilt Script for automatic preparation of published binaries. +echo. +echo USAGE: _publishbin [BUILT] [VERSION] +echo. +echo Example: _publishbin "Release Unicode" "0.8.3.2" +echo. +echo =============================================================================== +echo. + +:END \ No newline at end of file -- cgit v1.2.3