2 if "%XSRC%" == "" set XSRC=.
3 test -f %XSRC%/tests/stateful-check.orig
4 if errorlevel 1 update %XSRC%/tests/stateful-check %XSRC%/tests/stateful-check.orig
5 sed -f %XSRC%/djgpp/stateful-check.sed %XSRC%/tests/stateful-check.orig > stateful-check
6 if errorlevel 1 goto SedError
7 update ./stateful-check %XSRC%/tests/stateful-check
10 test -f %XSRC%/tests/stateless-check.orig
11 if errorlevel 1 update %XSRC%/tests/stateless-check %XSRC%/tests/stateless-check.orig
12 sed -f %XSRC%/djgpp/stateless-check.sed %XSRC%/tests/stateless-check.orig > stateless-check
13 if errorlevel 1 goto SedError
14 update ./stateless-check %XSRC%/tests/stateless-check
15 rm -f ./stateless-check
17 test -f %XSRC%/tests/translit-check.orig
18 if errorlevel 1 update %XSRC%/tests/translit-check %XSRC%/tests/translit-check.orig
19 sed -f %XSRC%/djgpp/translit-check.sed %XSRC%/tests/translit-check.orig > translit-check
20 if errorlevel 1 goto SedError
21 update ./translit-check %XSRC%/tests/translit-check
22 rm -f ./translit-check
26 echo test script editing failed!