summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/_publishbin.cmd
blob: 80d3e33699de662511cff5709bc0f12d5a1a2a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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