~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to devtools/create_project/scripts/postbuild.cmd

  • Committer: Package Import Robot
  • Author(s): Moritz Muehlenhoff
  • Date: 2011-11-05 10:29:43 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20111105102943-zfm3dhlvy5b01u7v
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
REM @echo off
 
1
@echo off
2
2
 
3
3
REM ---------------------------------------------------------------
4
4
REM -- Post-Build Script
5
5
REM ---------------------------------------------------------------
6
6
REM
7
7
REM Copy engine data, themes, translation and required dlls to the
8
 
REM output folder.
 
8
REM output folder and optionally create an installer
9
9
REM
10
10
REM Expected parameters
11
11
REM    Root folder
12
12
REM    Output folder
13
13
REM    Architecture
14
14
REM    Libs folder
 
15
REM    Installer ("1" to build, "0" to skip)
15
16
 
16
17
if "%~1"=="" goto error_root
17
18
if "%~2"=="" goto error_output
18
19
if "%~3"=="" goto error_arch
19
20
if "%~4"=="" goto error_libs
 
21
if "%~5"=="" goto error_installer
20
22
 
21
23
echo Copying data files
22
24
echo.
23
25
 
24
 
REM Copy files
25
 
xcopy /F /Y "%~1/dists/engine-data/*.dat" %~2 > NUL 2>&1
26
 
xcopy /F /Y "%~1/dists/engine-data/*.tbl" %~2 > NUL 2>&1
27
 
xcopy /F /Y "%~1/dists/engine-data/*.cpt" %~2 > NUL 2>&1
28
 
xcopy /F /Y "%~1/dists/engine-data/README" %~2 > NUL 2>&1
29
 
xcopy /F /Y "%~1/gui/themes/*.zip" %~2 > NUL 2>&1
30
 
xcopy /F /Y "%~1/gui/themes/translations.dat" %~2 > NUL 2>&1
31
 
xcopy /F /Y "%~4/lib/%~3/SDL.dll" %~2 > NUL 2>&1
32
 
 
33
 
xcopy /F /Y "%~1/backends/vkeybd/packs/vkeybd_default.zip" %~2 > NUL 2>&1
 
26
xcopy /F /Y "%~4/lib/%~3/SDL.dll"                          "%~2" 1>NUL 2>&1
 
27
xcopy /F /Y "%~1/backends/vkeybd/packs/vkeybd_default.zip" "%~2" 1>NUL 2>&1
 
28
 
 
29
if "%~5"=="0" goto done
 
30
 
 
31
echo Running installer script
 
32
echo.
 
33
@call cscript "%~1/devtools/create_project/scripts/installer.vbs" "%~1" "%~2" "%~3" 1>NUL
 
34
if not %errorlevel% == 0 goto error_script
34
35
goto done
35
36
 
36
37
:error_root
49
50
echo Invalid libs folder (%~4)!
50
51
goto done
51
52
 
 
53
:error_installer
 
54
echo Invalid installer parameter. Should be "0" or "1" (was %~5)!
 
55
goto done
 
56
 
 
57
:error_script:
 
58
echo An error occured while running the installer script!
 
59
goto done
 
60
 
52
61
:done
53
62
exit /B0