Subversion Repositories filter_foundry

Rev

Rev 310 | Rev 335 | Go to most recent revision | View as "text/x-msdos-batch" | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. @echo off
  2.  
  3. cd /d %~dp0
  4.  
  5. rem Find 64 bit DLL
  6. echo Collect 64 bit DLL...
  7. if not exist ..\visual_studio\FilterFoundry64.8bf (
  8.         echo Can't mix in 64 bit because 64 bit DLL not found. Please compile it first
  9.         exit
  10. )
  11. echo Visual CPP =^> in\FilterFoundry64.8bf
  12. copy /y ..\visual_studio\FilterFoundry64.8bf in\
  13.  
  14. rem Find 32 bit DLL
  15. rem Check if WPJ or VCPP file is newer and choose this as source
  16. echo Collect 32 bit DLL...
  17. if not exist ..\visual_studio\FilterFoundry.8bf (
  18.         if not exist ..\wpj\FilterFoundry.8bf (
  19.                 echo Can't mix in 32 bit because 32 bit DLL not found. Please compile it first
  20.                 exit
  21.         )
  22. )
  23. copy /y ..\wpj\FilterFoundry.8bf in\FilterFoundry_wpj.8bf >NUL
  24. copy /y ..\visual_studio\FilterFoundry.8bf in\FilterFoundry_vc.8bf >NUL
  25. SET FILE1=in\FilterFoundry_wpj.8bf
  26. SET FILE2=in\FilterFoundry_vc.8bf
  27. FOR /F %%i IN ('DIR /B /O:D %FILE1% %FILE2%') DO SET NEWEST=%%i
  28. if "%NEWEST%" == "FilterFoundry_wpj.8bf" (
  29.         echo OpenWatcom =^> in\FilterFoundry.8bf
  30.         move in\FilterFoundry_wpj.8bf in\FilterFoundry.8bf >NUL
  31.         del in\FilterFoundry_vc.8bf >NUL
  32.  
  33.         echo Now start the mixer!
  34.         foundry_3264_mixer.exe
  35.  
  36.         echo Copy back 32 bit to WPJ build dir, to enable debugging in IDE
  37.         copy /y out\FilterFoundry.8bf ..\wpj\FilterFoundry.8bf
  38.         echo Copy back 64 bit to VCPP build dir, to enable debugging in IDE
  39.         copy /y out\FilterFoundry64.8bf ..\visual_studio\FilterFoundry64.8bf
  40. ) else (
  41.         echo Visual CPP =^> in\FilterFoundry.8bf
  42.         move in\FilterFoundry_vc.8bf in\FilterFoundry.8bf >NUL
  43.         del in\FilterFoundry_wpj.8bf >NUL
  44.  
  45.         echo Now start the mixer!
  46.         foundry_3264_mixer.exe
  47.  
  48.         echo Copy back 32 bit to VCPP build dir, to enable debugging in IDE
  49.         copy /y out\FilterFoundry.8bf ..\visual_studio\FilterFoundry.8bf
  50.         echo Copy back 64 bit to VCPP build dir, to enable debugging in IDE
  51.         copy /y out\FilterFoundry64.8bf ..\visual_studio\FilterFoundry64.8bf
  52. )
  53.  
  54. rem pause.
  55.