?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. @echo off
  2. IF NOT "%makeall%"=="" EXIT /b
  3. setlocal EnableDelayedExpansion
  4. call :ExpandFileName ..\release
  5. IF EXIST ..\us\sd_nedo.vhd IF EXIST ..\us\hdd_nedo.vhd (
  6.         GOTO COPYFILES
  7. )
  8.  
  9. IF NOT EXIST ..\tools\images.exe (
  10.         ECHO Error: Image not found!
  11.         exit /b
  12. )
  13. ..\tools\images.exe
  14. IF NOT EXIST ..\us\sd_nedo.vhd move sd_nedo.vhd ..\us\
  15. IF NOT EXIST ..\us\hdd_nedo.vhd move hdd_nedo.vhd ..\us\
  16. IF EXIST sd_nedo.vhd del sd_nedo.vhd
  17. IF EXIST hdd_nedo.vhd del hdd_nedo.vhd
  18. IF EXIST b.bat del b.bat
  19.  
  20. :COPYFILES
  21. echo Copy in to Unreal image ...
  22. IF EXIST img.lst del img.lst
  23. FOR /R %rel% %%i in (.) do (
  24.         set ob=%%~dpni 
  25.         echo mkdir !ob:%rel%=!>> img.lst
  26. )
  27. FOR /R %rel% %%i IN (*.*) do (
  28.         set ob=%%~dpnxi
  29.         echo put %%i !ob:%rel%=!>> img.lst
  30. )
  31. %~dp0dmimg ..\us\%1_nedo.vhd conf img.lst
  32. exit /b
  33.  
  34. :ExpandFileName
  35. set rel=%~f1
  36. exit /b
  37.