@echo off setlocal set _dir=%~dp0 set _dir=%_dir:~0,-1% set _opt=%OPT% if "%_opt%" == "" ( set _opt=c:\opt ) if not exist "%_opt%\." ( set _opt=d:\opt ) if not exist "%_opt%\." ( set _opt=e:\opt ) if not exist "%_opt%\." ( goto :EOF ) if exist "%_dir%\build\out\x64\Release\now.exe" ( echo copying "%_dir%\build\out\x64\Release\now.exe" to "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release\now.exe" "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release\*.dll" "%_opt%\bin\X64" ) if exist "%_dir%\build\out\x86\Release\now.exe" ( echo copying "%_dir%\build\out\x86\Release\now.exe" to "%_opt%\bin\x86" copy /y "%_dir%\build\out\x86\Release\now.exe" "%_opt%\bin\X86" copy /y "%_dir%\build\out\x86\Release\*.dll" "%_opt%\bin\X86" ) if exist "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.mo" ( echo copying "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.mo" to "%_opt%\share\locale\en\LC_MESSAGES" copy /y "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.mo" "%_opt%\share\locale\en\LC_MESSAGES" ) if exist "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.po" ( echo copying "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.po" to "%_opt%\share\locale\en\LC_MESSAGES" copy /y "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.po" "%_opt%\share\locale\en\LC_MESSAGES" ) if exist "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.pot" ( echo copying "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.pot" to "%_opt%\share\locale\en\LC_MESSAGES" copy /y "%_dir%\build\out\share\locale\en\LC_MESSAGES\now.pot" "%_opt%\share\locale\en\LC_MESSAGES" ) endlocal