diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
commit | 48540940b6c28bb4378abfeb500ec45a625b37b6 (patch) | |
tree | 2ef294c0763e802f91d868bdef4229b6868527de /plugins/UserInfoEx/_publishbin.cmd | |
parent | 5c350913f011e119127baeb32a6aedeb4f0d33bc (diff) |
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/_publishbin.cmd')
-rw-r--r-- | plugins/UserInfoEx/_publishbin.cmd | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/plugins/UserInfoEx/_publishbin.cmd b/plugins/UserInfoEx/_publishbin.cmd new file mode 100644 index 0000000000..80d3e33699 --- /dev/null +++ b/plugins/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 |