Source code of Windows XP (NT5)
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.

36 lines
944 B

  1. # //+-------------------------------------------------------------------------
  2. # //
  3. # // Copyright (C) 1993, Microsoft Corporation.
  4. # //
  5. # // File: rcfiles.sed
  6. # //
  7. # // Contents: Sed script to convert a list of rc files into a header
  8. # // file that can be compiled with RC. This is to workaround
  9. # // a "feature" of COFF that only one resource obj can be used
  10. # // for any one image...
  11. # //
  12. # // History: 17-May-93 BryanT Created
  13. # //
  14. # // Notes: sed -f rcfiles.sed file.tmp > foo.rc
  15. # //
  16. # //--------------------------------------------------------------------------
  17. #
  18. # The input file will look like this:
  19. # .\foo.rc
  20. #
  21. # .\version.rc
  22. #
  23. #
  24. # 1. We strip out all the blank lines (lines that don't contain a period)
  25. # 2. Add #include< to the beginning of each line.
  26. # 3. Add > to the end of each line.
  27. #
  28. # When finished, the file looks like this:
  29. #
  30. # #include <.\foo.rc>
  31. # #include <.\version.rc>
  32. #
  33. /\./!d
  34. s/^/\#include\</g
  35. s/$/\>/g