Subversion Repositories NedoOS

Rev

Rev 693 | Rev 829 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

  1. @echo off
  2. if "%edeset%"=="" (
  3.         setlocal ENABLEDELAYEDEXPANSION
  4.         set edeset=1
  5. )
  6. SET currentdir=%CD%
  7. SET releasedir=%CD%\..\release\
  8.  
  9. if not exist ..\release mkdir ..\release
  10. if not exist %releasedir%\bin mkdir %releasedir%\bin
  11. if not exist %releasedir%\doc mkdir %releasedir%\doc
  12.  
  13. IF "%softbuilded%"=="" (
  14.         cd %currentdir%\fatfs4os
  15.         call build.bat
  16. )
  17. cd %currentdir%\kernel
  18. call build.bat
  19.  
  20. cd %currentdir%
  21. IF "%softbuilded%"=="" (
  22.         set softbuilded=1
  23.         FOR /R . %%i IN (build.bat) DO (
  24.                 if exist %%i (
  25.                         cd "%%~pi"
  26.                         IF NOT EXIST ffconf.h IF NOT EXIST ffsfunc.asm (
  27.                                 SET installdir=bin
  28.                                 echo "%%~pi"
  29.                                 call build.bat
  30.                                 if not exist "%releasedir%!installdir!" mkdir "%releasedir%!installdir!"
  31.                                 FOR %%j IN (*.com) DO (
  32.                                         copy /Y "*.com" "%releasedir%!installdir!" > nul
  33.                                         IF EXIST %%~nj xcopy /Y "%%~nj" "%releasedir%!installdir!\%%~nj\" > nul
  34.                                 )
  35.                                 if exist *.ext ( copy *.ext %releasedir%!installdir!\ > nul )
  36.                         )
  37.                 )
  38.         )
  39.         cd %currentdir%
  40.  
  41.         FOR /R . %%i IN (*.txt) DO (
  42.                 if exist %%i (
  43.                         copy %%i %releasedir%\doc\ > nul
  44.                 )
  45.         )
  46.         cd %currentdir%
  47.  
  48.         FOR /R . %%i IN (*.new) DO (
  49.                 if exist %%i (
  50.                         copy %%i %releasedir%\doc\ > nul
  51.                 )
  52.         )
  53.         cd %currentdir%
  54.  
  55.         copy autoexec.bat %releasedir%\bin\ > nul
  56.         copy net.ini %releasedir%\bin\ > nul
  57.         copy games\smb\antipac.fm2 %releasedir%\bin\ > nul
  58.         copy ..\smb.nes %releasedir%\bin\ > nul
  59.         copy basic\example.bas %releasedir%\bin\ > nul
  60.         rem copy games\wolf3d\wolftex.* %releasedir%\bin\ > nul
  61. )
  62.  
  63. if not "%1"=="noneedtrd" (
  64.         del %releasedir%\bin\forest.dat > nul
  65.         del %releasedir%\bin\*.zip > nul
  66.         del %releasedir%\bin\*.fm2 > nul
  67.         del %releasedir%\bin\*.pas > nul
  68.         del %releasedir%\bin\*.inc > nul
  69.         del %releasedir%\bin\*.ccc > nul
  70.         del %releasedir%\bin\*.c > nul
  71.         del %releasedir%\bin\*.h > nul
  72.         md %releasedir%\br
  73.         ren %releasedir%\bin\browser.com mowser.com
  74.         move %releasedir%\bin\evsummer.com %releasedir%\br\
  75.         move %releasedir%\bin\br*.* %releasedir%\br\
  76.         ren %releasedir%\bin\mowser.com browser.com
  77.        rem del %releasedir%\bin\hello.com > nul
  78.         del %releasedir%\bin\gf.com > nul
  79.        rem del %releasedir%\bin\reset.com > nul
  80.         del %releasedir%\bin\emptyapp.com > nul
  81.        rem del %releasedir%\bin\raytrace.com > nul
  82.        rem del %releasedir%\bin\gfxtest.com > nul
  83.         del %releasedir%\bin\dmm.com > nul
  84.        rem del %releasedir%\bin\cc.bat > nul
  85.         nedotrd test.trd -n
  86.         nedotrd test.trd -ah boot6000.$b
  87.         nedotrd test.trd -s 24576 -ac kernel/code.c
  88.  
  89.         for %%i in (%releasedir%\bin\*.*) do (
  90.                 nedotrd test.trd -a %%i
  91.         )
  92.         move %releasedir%\br\*.* %releasedir%\bin\
  93.         rd %releasedir%\br
  94.  
  95.         rem nedotrd test.trd -a scratch/lanscape.bmp
  96.  
  97.         rem nedotrd test.trd -a nedolang/comp/sizesz80.h
  98.         rem nedotrd test.trd -a nedolang/comp/comp_os.s
  99.         rem nedotrd test.trd -a nedolang/comp/compc_os.s
  100.         rem nedotrd test.trd -a nedolang/comp/compile.c
  101.         rem nedotrd test.trd -a nedolang/comp/codez80.c
  102.         rem nedotrd test.trd -a nedolang/comp/commands.c
  103.         rem nedotrd test.trd -a nedolang/comp/regs.c
  104.         rem nedotrd test.trd -a nedolang/comp/test.bat
  105.  
  106.         rem nedotrd test.trd -a nedolang/_sdk/str.h
  107.         rem nedotrd test.trd -a nedolang/_sdk/io.h
  108.         rem nedotrd test.trd -a nedolang/_sdk/emit.h
  109.         rem nedotrd test.trd -a nedolang/_sdk/emit.c
  110.         rem nedotrd test.trd -a nedolang/_sdk/read.c
  111.         rem nedotrd test.trd -a nedolang/_sdk/typecode.h
  112.         rem nedotrd test.trd -a nedolang/_sdk/lib.i
  113.         rem nedotrd test.trd -a nedolang/_sdk/str.i
  114.         rem nedotrd test.trd -a nedolang/_sdk/io_os.i
  115.         rem nedotrd test.trd -a _sdk/sysdefs.asm
  116.  
  117.         rem nedotrd test.trd -a basic/example.bas
  118.         rem nedotrd test.trd -a nedolang/nedogift/testmusi.pt3
  119.         rem nedotrd test.trd -a player/coco.pt2
  120.         rem nedotrd test.trd -a browser/browser/nos.htm
  121.         rem nedotrd test.trd -a browser/house.svg
  122.        rem nedotrd test.trd -a _sdk/logo-louisa.svg
  123.         rem nedotrd test.trd -a browser/test/zajchik.gif
  124.         rem nedotrd test.trd -a browser/test/girl.jpg
  125.         rem nedotrd test.trd -a browser/test/csprmain.htm
  126.         rem nedotrd test.trd -a browser/test/spwiki.htm
  127.         rem nedotrd test.trd -a browser/test/atmpg.htm
  128.         rem nedotrd test.trd -a browser/test/atmpg2.htm
  129.         rem nedotrd test.trd -a browser/test/6914fast.gif
  130.         rem nedotrd test.trd -a browser/test/6908fast.gif
  131.         rem nedotrd test.trd -a browser/test/6909wrbg.gif
  132.         rem nedotrd test.trd -a browser/test/animatie.gif
  133.         rem nedotrd test.trd -a browser/test/sprites.gif
  134.         rem nedotrd test.trd -a browser/test/listh.htm
  135.         rem nedotrd test.trd -a browser/test/alphaba3.png
  136.         rem nedotrd test.trd -a browser/test/clown.png
  137.         rem nedotrd test.trd -a browser/test/basn3p01.png
  138.         rem nedotrd test.trd -a browser/test/basn3p02.png
  139.         rem nedotrd test.trd -a browser/test/basn3p04.png
  140.         rem nedotrd test.trd -a browser/test/s40n3p04.png
  141.         rem nedotrd test.trd -a browser/test/basn0g01.png
  142.         rem nedotrd test.trd -a browser/test/basn0g02.png
  143.         rem nedotrd test.trd -a browser/test/basn0g04.png
  144.         rem nedotrd test.trd -a browser/test/basi0g16.png
  145.         rem nedotrd test.trd -a pkunzip/pkunzip.zip
  146.         rem nedotrd test.trd -a modplay/scalsfjy.mod
  147.  
  148.         rem nedotrd test.trd -a browser/test/newview.png
  149.  
  150.         rem for %%i in (%releasedir%\doc\*.*) do (
  151.         rem     nedotrd test.trd -a %%i
  152.         rem )
  153.        
  154. )