Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

  1. @call ..\..\include\csresstr.bat resource.h
  2. @rem Change the following:
  3. @rem #define __dwFILE_OCMSETUP_BROWSEDI_CPP__ 101
  4. @rem To:
  5. @rem _SYMENTRY(__dwFILE_OCMSETUP_BROWSEDI_CPP__),
  6. @wc csfile2.h
  7. @del csfile2.tmp 2>nul
  8. @qgrep -e "^#define[ ][ ]*__dwFILE_" ..\..\include\csfile.h | sed -e "s;^#define[ ][ ]*\(.*CPP__\).*;_SYMENTRY(\1),;" > csfile2.tmp
  9. @diff csfile2.tmp csfile2.h > nul & if not errorlevel 1 goto filedone
  10. sd edit csfile2.h
  11. @copy csfile2.tmp csfile2.h
  12. @wc csfile2.h
  13. :filedone
  14. @del csfile2.tmp
  15. @rem Change the following:
  16. @rem #define IDS_FOO 101
  17. @rem To:
  18. @rem _SYMENTRY(IDS_FOO),
  19. @wc csres2.h
  20. @del csres2.tmp 2>nul
  21. @qgrep -e "^#define[ ][ ]*IDS_" ..\..\include\clibres.h ..\..\include\setupids.h ..\..\ocmsetup\res.h | sed -e "s;^.*:#define[ ][ ]*\(IDS_[^ ]*\).*;_SYMENTRY(\1),;" > csres2.tmp
  22. @diff csres2.tmp csres2.h > nul & if not errorlevel 1 goto resdone
  23. sd edit csres2.h
  24. @copy csres2.tmp csres2.h
  25. @wc csres2.h
  26. :resdone
  27. @del csres2.tmp