?login_element?

Subversion Repositories NedoOS

Rev

Rev 1068 | 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.                                 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/moon.com
  96.         nedotrd test.trd -a %releasedir%/bin/3ws.com
  97.         nedotrd test.trd -a %releasedir%/bin/time.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.  
  102. rem archives
  103.         nedotrd test.trd -a %releasedir%/bin/pkunzip.com
  104.         nedotrd test.trd -a %releasedir%/bin/tar.com
  105.         nedotrd test.trd -a %releasedir%/bin/zxrar.com
  106.         nedotrd test.trd -a %releasedir%/bin/unrar.com
  107.  
  108. rem disk/tape images
  109.        rem nedotrd test.trd -a %releasedir%/bin/nedodel.com
  110.         nedotrd test.trd -a %releasedir%/bin/rdtrd.com
  111.         nedotrd test.trd -a %releasedir%/bin/wrtrd.com
  112.         nedotrd test.trd -a %releasedir%/bin/playtap.com
  113.         nedotrd test.trd -a %releasedir%/bin/dmm.com
  114.         nedotrd test.trd -a %releasedir%/bin/nmisvc.com
  115.        rem nedotrd test.trd -a %releasedir%/bin/tazres.bin
  116.  
  117. rem Pascal compiler
  118.         nedotrd test.trd -a %releasedir%/bin/tp.com
  119.         nedotrd test.trd -a %releasedir%/bin/turbo.msg
  120.  
  121. rem Nedolang compiler
  122.         nedotrd test.trd -a %releasedir%/bin/comp.com
  123.         nedotrd test.trd -a %releasedir%/bin/tok.com
  124.         nedotrd test.trd -a %releasedir%/bin/asm.com
  125.        rem nedotrd test.trd -a %releasedir%/bin/exp.com
  126.         nedotrd test.trd -a %releasedir%/bin/io.h
  127.         nedotrd test.trd -a %releasedir%/bin/iofast.i
  128.         nedotrd test.trd -a %releasedir%/bin/lib.i
  129.  
  130. rem BASIC
  131.         nedotrd test.trd -a %releasedir%/bin/basic.com
  132.         nedotrd test.trd -a %releasedir%/bin/example.bas
  133.  
  134. rem C compiler
  135.         nedotrd test.trd -a %releasedir%/bin/cc.com
  136.         nedotrd test.trd -a %releasedir%/bin/cc2.com
  137.         nedotrd test.trd -a %releasedir%/bin/clink.com
  138.         nedotrd test.trd -a %releasedir%/bin/c.ccc
  139.         nedotrd test.trd -a %releasedir%/bin/deff2.crl
  140.  
  141. rem music
  142.         nedotrd test.trd -a %releasedir%/bin/player.com
  143.         nedotrd test.trd -a %releasedir%/bin/modplay.com
  144.         nedotrd test.trd -a %releasedir%/bin/pt.com
  145.        rem nedotrd test.trd -a %releasedir%/bin/untr.com
  146.  
  147. rem gfx
  148.         nedotrd test.trd -a %releasedir%/bin/scratch.com
  149.         nedotrd test.trd -a %releasedir%/bin/view.com
  150.  
  151.         rem for %%i in (%releasedir%\doc\*.*) do (
  152.         rem     nedotrd test.trd -a %%i
  153.         rem )
  154.        
  155. )