windows-nt/Source/XPSP1/NT/ds/security/services/ca/include/csresstr.bat
2020-09-26 16:20:57 +08:00

14 lines
372 B
Batchfile

@wc resstr.h
@copy %0\..\resstr0.h resstr.tmp > nul
@qgrep #define %1 %2 %3 %4 %5 %6 %7 %8 %9 | qgrep -e "\<IDS_" | sed -e "/\/\//d" -e "s;.*\(IDS_[A-Z0-9_]*\).*; RESSTR(\1),;" >> resstr.tmp
@diff resstr.tmp resstr.h > nul & if not errorlevel 1 goto done
sd edit resstr.h
@copy resstr.tmp resstr.h
@wc resstr.h
:done
@del resstr.tmp