OSDN Git Service

Initial commit
[wordring-tm/wordring-tm.git] / third_party / tidy-html5-master / build / win64 / updexe.bat
1 @setlocal
2 @REM copy the EXE into C:\MDOS, IFF changed
3 @set TMPDIR=C:\MDOS
4 @set TMPFIL1=tidy5.exe
5 @set TMPFIL2=tidy5.exe
6 @set TMPSRC=Release\%TMPFIL1%
7 @if NOT EXIST %TMPSRC% goto ERR1
8 @echo Current source %TMPSRC%
9 @call dirmin %TMPSRC%
10
11 @if NOT EXIST %TMPDIR%\nul goto ERR2
12 @set TMPDST=%TMPDIR%\%TMPFIL2%
13 @if NOT EXIST %TMPDST% goto DOCOPY
14
15 @echo Current destination %TMPDST%
16 @call dirmin %TMPDST%
17
18 @REM Compare
19 @fc4 -q -v0 -b %TMPSRC% %TMPDST% >nul
20 @if ERRORLEVEL 2 goto NOFC4
21 @if ERRORLEVEL 1 goto DOCOPY
22 @echo.
23 @echo Files are the SAME... Nothing done...
24 @echo.
25 @goto END
26
27 :NOFC4
28 @echo Can NOT run fc4! so doing copy...
29 :DOCOPY
30 copy %TMPSRC% %TMPDST%
31 @if NOT EXIST %TMPDST% goto ERR3
32 @call dirmin %TMPDST%
33 @echo Done file update...
34 @goto END
35
36 :ERR1
37 @echo Source %TMPSRC% does NOT exist! Has it been built? *** FIX ME ***
38 @goto ISERR
39
40 :ERR2
41 @echo Destination %TMPDIR% does NOT exist!
42 @goto ISERR
43
44 :ERR3
45 @echo Copy of %TMPSRC% to %TMPDST% FAILED!
46 @goto ISERR
47
48 :ISERR
49 @endlocal
50 @exit /b 1
51
52 :END
53 @endlocal
54 @exit /b 0
55
56 @REM eof