From 5e718329b3b289913fd152f3785f1c52a2706e42 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Fri, 8 Aug 2014 17:15:44 +0200 Subject: [PATCH] just to update exe to my C:/MDOS folder --- build/win64/updexe.bat | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 build/win64/updexe.bat diff --git a/build/win64/updexe.bat b/build/win64/updexe.bat new file mode 100644 index 0000000..1ac9204 --- /dev/null +++ b/build/win64/updexe.bat @@ -0,0 +1,55 @@ +@setlocal +@REM copy the EXE into C:\MDOS, IFF changed +@set TMPDIR=C:\MDOS +@set TMPFIL=tidy5.exe +@set TMPSRC=Release\%TMPFIL% + +@if NOT EXIST %TMPSRC% goto ERR1 +@echo Current source %TMPSRC% +@call dirmin %TMPSRC% + +@if NOT EXIST %TMPDIR%\nul goto ERR2 +@set TMPDST=%TMPDIR%\%TMPFIL% +@if NOT EXIST %TMPDST% goto DOCOPY + +@echo Current destination %TMPDST% +@call dirmin %TMPDST% + +@REM Compare +@fc4 -q -v0 -b %TMPSRC% %TMPDST% >nul +@if ERRORLEVEL 2 goto NOFC4 +@if ERRORLEVEL 1 goto DOCOPY +@echo Files are the SAME... Nothing done... +@goto END + +:NOFC4 +@echo Can NOT run fc4! so doing copy... +:DOCOPY +copy %TMPSRC% %TMPDST% +@if NOT EXIST %TMPDST% goto ERR3 +@call dirmin %TMPDST% +@echo Done file update... +@goto END + +:ERR1 +@echo Source %TMPSRC% does NOT exist! Has it been built? *** FIX ME *** +@goto ISERR + +:ERR2 +@echo Destination %TMPDIR% does NOT exist! +@goto ISERR + +:ERR3 +@echo Copy of %TMPSRC% to %TMPDST% FAILED! +@goto ISERR + +:ISERR +@endlocal +@exit /b 1 + +:END +@endlocal +@exit /b 0 + +@REM eof +