2
:: usage: ifchange target temporary
4
:: check if fc.exe works.
5
echo foo > conftest1.tmp
6
echo bar > conftest2.tmp
7
fc.exe conftest1.tmp conftest2.tmp > nul
8
if not errorlevel 1 goto :brokenfc
9
del conftest1.tmp > nul
10
del conftest2.tmp > nul
12
:: target does not exist or new file differs from it.
13
if not exist %1 goto :update
15
if errorlevel 1 goto :update
23
del conftest1.tmp > nul
24
del conftest2.tmp > nul
25
echo FC.EXE does not work properly.
26
echo assuming %1 should be changed.