Subversion Repositories eduke32

Rev

Rev 4818 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4818 Rev 4824
Line 1... Line 1...
1
@echo off
1
@echo off
2
setlocal ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION
2
setlocal ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION
3
3
4
set targets=eduke32 mapster32
4
set targets=eduke32 mapster32
5
set PATH=C:\devkitPro\devkitPPC\bin;C:\devkitPro\msys\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;%PATH%
5
set PATH=C:\devkitPro\devkitPPC\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\devkitPro\msys\bin;%PATH%
6
set DEVKITPPC=C:/devkitPro/devkitPPC
6
set DEVKITPPC=C:/devkitPro/devkitPPC
7
set DEVKITPRO=C:/devkitPro
7
set DEVKITPRO=C:/devkitPro
8
8
9
pushd "%~dp0.."
9
pushd "%~dp0.."
10
set wiidir=platform\Wii
10
set wiidir=platform\Wii
Line 23... Line 23...
23
:: Build:
23
:: Build:
24
set commandline=make PLATFORM=WII %* STRIP=""
24
set commandline=make PLATFORM=WII %* STRIP=""
25
echo %commandline%
25
echo %commandline%
26
%commandline%
26
%commandline%
27
27
28
for %%G in (%targets%) do if not exist "%%~G.elf" goto end
28
for %%G in (%targets%) do if not exist "%%~G.dol" goto end
29

-
 
30
:: Strip:
-
 
31
for %%G in (%targets%) do for %%H in (.elf) do if exist "%%~G%%~H" copy /y "%%~G%%~H" "%%~G-unstripped%%~H"
-
 
32
for %%G in (%targets%) do for %%H in (.elf) do if exist "%%~G%%~H" powerpc-eabi-strip "%%~G%%~H"
-
 
33

29

34
:: Package data:
30
:: Package data:
35
if not exist apps mkdir apps
31
if not exist apps mkdir apps
36
for %%G in (%targets%) do xcopy /e /q /y %wiidir%\apps\%%~G apps\%%~G\
32
for %%G in (%targets%) do xcopy /e /q /y %wiidir%\apps\%%~G apps\%%~G\
37
for %%G in (%targets%) do for %%H in (.elf) do if exist "%%~G%%~H" move /y "%%~G%%~H" "apps\%%~G\boot%%~H"
33
for %%G in (%targets%) do for %%H in (.dol) do if exist "%%~G%%~H" move /y "%%~G%%~H" "apps\%%~G\boot%%~H"
38
for %%G in (%targets%) do for %%H in (.elf.map) do if exist "%%~G%%~H" del /f /q "%%~G%%~H"
34
for %%G in (%targets%) do for %%H in (.elf.map) do if exist "%%~G%%~H" del /f /q "%%~G%%~H"
39
for %%G in (%targets%) do "echo.exe" -e "    <version>r%rev%</version>\n    <release_date>%currentdate%</release_date>" | "cat.exe" "%wiidir%\%%~G_meta_1.xml" - "%wiidir%\%%~G_meta_2.xml" >"apps\%%~G\meta.xml"
35
for %%G in (%targets%) do "echo.exe" -e "    <version>r%rev%</version>\n    <release_date>%currentdate%</release_date>" | "cat.exe" "%wiidir%\%%~G_meta_1.xml" - "%wiidir%\%%~G_meta_2.xml" >"apps\%%~G\meta.xml"
40
36
41
xcopy /e /q /y /EXCLUDE:%wiidir%\xcopy_exclude.txt package\common apps\eduke32\
37
xcopy /e /q /y /EXCLUDE:%wiidir%\xcopy_exclude.txt package\common apps\eduke32\
42
38
43
xcopy /e /q /y /EXCLUDE:%wiidir%\xcopy_exclude.txt package\common apps\mapster32\
39
xcopy /e /q /y /EXCLUDE:%wiidir%\xcopy_exclude.txt package\common apps\mapster32\
44
xcopy /e /q /y /EXCLUDE:%wiidir%\xcopy_exclude.txt package\sdk apps\mapster32\
40
xcopy /e /q /y /EXCLUDE:%wiidir%\xcopy_exclude.txt package\sdk apps\mapster32\
45
41
46
"ls.exe" -l -R apps
42
"ls.exe" -l -R apps
-
 
43
7z.exe a -mx9 -t7z eduke32-wii-r%rev%-debug-elf.7z *.elf -xr!*.svn*
47
7z.exe a -mx9 -t7z eduke32-wii-r%rev%.7z apps -xr!*.svn*
44
7z.exe a -mx9 -t7z eduke32-wii-r%rev%.7z apps -xr!*.svn*
48
45
49
:end
46
:end
50
47
51
endlocal
48
endlocal