?login_element?

Subversion Repositories NedoOS

Rev

Rev 1198 | 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.                                 if exist *.ccc ( copy *.ccc %releasedir%!installdir!\ > nul )
  37.                                 if exist *.crl ( copy *.crl %releasedir%!installdir!\ > nul )
  38.                                 if exist *.crl ( copy *.i %releasedir%!installdir!\ > nul )
  39.                                 if exist *.crl ( copy *.h %releasedir%!installdir!\ > nul )
  40.                         )
  41.                 )
  42.         )
  43.         cd %currentdir%
  44.  
  45.         FOR /R . %%i IN (*.txt) DO (
  46.                 if exist %%i (
  47.                         copy %%i %releasedir%\doc\ > nul
  48.                 )
  49.         )
  50.         FOR /R . %%i IN (*.new) DO (
  51.                 if exist %%i (
  52.                         copy %%i %releasedir%\doc\ > nul
  53.                 )
  54.         )
  55.         FOR /R . %%i IN (*.md) DO (
  56.                 if exist %%i (
  57.                         copy %%i %releasedir%\doc\ > nul
  58.                 )
  59.         )
  60.  
  61.         copy autoexec.bat %releasedir%\bin\ > nul
  62.         copy net.ini %releasedir%\bin\ > nul
  63.         copy games\smb\antipac.fm2 %releasedir%\nedogame\ > nul
  64.         copy ..\smb.nes %releasedir%\nedogame\ > nul
  65.         copy basic\example.bas %releasedir%\bin\ > nul
  66. )
  67.  
  68. if not "%1"=="noneedtrd" (
  69.         nedotrd test.trd -n
  70.         nedotrd test.trd -ah boot6000.$b
  71.         nedotrd test.trd -s 24576 -ac kernel/code.c
  72.         nedotrd test.trd -a %releasedir%/bin/autoexec.bat
  73.         nedotrd test.trd -a %releasedir%/bin/reset.com
  74.         nedotrd test.trd -a %releasedir%/bin/term.com
  75.        rem nedotrd test.trd -a %releasedir%/bin/netterm.com
  76.         nedotrd test.trd -a %releasedir%/bin/cmd.com
  77.         nedotrd test.trd -a %releasedir%/bin/nv.com
  78.         nedotrd test.trd -a %releasedir%/bin/nv.ext
  79.         nedotrd test.trd -a %releasedir%/bin/hddfdisk.com
  80.         nedotrd test.trd -a %releasedir%/bin/texted.com
  81.        rem nedotrd test.trd -a %releasedir%/bin/more.com
  82.        rem nedotrd test.trd -a %releasedir%/bin/nim.com
  83.        rem nedotrd test.trd -a %releasedir%/bin/diff.com
  84.  
  85. rem     for %%i in (%releasedir%\bin\*.*) do (
  86. rem             nedotrd test.trd -a %%i
  87. rem     )
  88.  
  89. rem network
  90.         nedotrd test.trd -a %releasedir%/bin/wizcfg.com
  91.         nedotrd test.trd -a %releasedir%/bin/ping.com
  92.         nedotrd test.trd -a %releasedir%/bin/browser.com
  93.         nedotrd test.trd -a %releasedir%/bin/browser/nos.htm
  94.         nedotrd test.trd -a %releasedir%/bin/wget.com
  95.         nedotrd test.trd -a %releasedir%/bin/mrf.com
  96.         nedotrd test.trd -a %releasedir%/bin/3ws.com
  97.         nedotrd test.trd -a %releasedir%/bin/time2.com
  98.         nedotrd test.trd -a %releasedir%/bin/dmirc.com
  99.         nedotrd test.trd -a %releasedir%/bin/dmftp.com
  100.         nedotrd test.trd -a %releasedir%/bin/telnet.com
  101.         nedotrd test.trd -a %releasedir%/bin/updater.com
  102.         nedotrd test.trd -a %releasedir%/bin/dns.com
  103.  
  104.         nedotrd test.trd -a %releasedir%/bin/net.ini
  105.         nedotrd test.trd -a kapps/common/ATM2/espcom.ini
  106.  
  107. rem archives
  108.         nedotrd test.trd -a %releasedir%/bin/pkunzip.com
  109.         nedotrd test.trd -a %releasedir%/bin/tar.com
  110.         nedotrd test.trd -a %releasedir%/bin/zxrar.com
  111.         nedotrd test.trd -a %releasedir%/bin/unrar.com
  112.  
  113. rem disk/tape images
  114.        rem nedotrd test.trd -a %releasedir%/bin/nedodel.com
  115.         nedotrd test.trd -a %releasedir%/bin/rdtrd2.com
  116.         nedotrd test.trd -a %releasedir%/bin/wrtrd2.com
  117.         nedotrd test.trd -a %releasedir%/bin/playtap.com
  118.         nedotrd test.trd -a %releasedir%/bin/dmm.com
  119.         nedotrd test.trd -a %releasedir%/bin/nmisvc.com
  120.        rem nedotrd test.trd -a %releasedir%/bin/tazres.bin
  121.  
  122. rem Pascal compiler
  123.         nedotrd test.trd -a %releasedir%/bin/tp.com
  124.         nedotrd test.trd -a %releasedir%/bin/turbo.msg
  125.  
  126. rem Nedolang compiler
  127.         nedotrd test.trd -a %releasedir%/bin/comp.com
  128.         nedotrd test.trd -a %releasedir%/bin/tok.com
  129.         nedotrd test.trd -a %releasedir%/bin/asm.com
  130.        rem nedotrd test.trd -a %releasedir%/bin/exp.com
  131.         nedotrd test.trd -a %releasedir%/bin/io.h
  132.         nedotrd test.trd -a %releasedir%/bin/iofast.i
  133.         nedotrd test.trd -a %releasedir%/bin/lib.i
  134.  
  135. rem BASIC
  136.         nedotrd test.trd -a %releasedir%/bin/basic.com
  137.         nedotrd test.trd -a %releasedir%/bin/example.bas
  138.  
  139. rem C compiler
  140.         nedotrd test.trd -a %releasedir%/bin/cc.com
  141.         nedotrd test.trd -a %releasedir%/bin/cc2.com
  142.         nedotrd test.trd -a %releasedir%/bin/clink.com
  143.         nedotrd test.trd -a %releasedir%/bin/c.ccc
  144.         nedotrd test.trd -a %releasedir%/bin/deff2.crl
  145.  
  146. rem music
  147.         nedotrd test.trd -a %releasedir%/bin/player.com
  148.         nedotrd test.trd -a %releasedir%/bin/modplay.com
  149.         nedotrd test.trd -a %releasedir%/bin/pt.com
  150.        rem nedotrd test.trd -a %releasedir%/bin/untr.com
  151.  
  152. rem gfx
  153.         nedotrd test.trd -a %releasedir%/bin/scratch.com
  154.         nedotrd test.trd -a %releasedir%/bin/view.com
  155.  
  156.         rem for %%i in (%releasedir%\doc\*.*) do (
  157.         rem     nedotrd test.trd -a %%i
  158.         rem )
  159.        
  160. )