home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / restext / xpstring.xps_Make < prev    next >
Encoding:
Text File  |  1998-04-08  |  2.1 KB  |  62 lines

  1. # -*- Mode: Fundamental -*-
  2. #
  3. # The contents of this file are subject to the Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  7. #
  8. # Software distributed under the NPL is distributed on an "AS IS" basis,
  9. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10. # for the specific language governing rights and limitations under the
  11. # NPL.
  12. #
  13. # The Initial Developer of this code under the NPL is Netscape
  14. # Communications Corporation.  Portions created by Netscape are
  15. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16. # Reserved.
  17.  
  18. # MakeXPStrings
  19.  
  20. Evaluate % = ("{{SourceFile}}" =~ /(┼:)¿0┼/)
  21. Directory "{{¿0}}"
  22.  
  23. Set            ns                    "::::"    # project folder relative
  24. Set -e        ResourceDir    "{{ns}}cmd:macfe:restext:"
  25. Set            TargetDir        "{{ns}}cmd:macfe:projects:client:"
  26. Set            RIncludes        "{{ns}}lib:mac:MW:Headers:Rez_Headers:"
  27.  
  28. MWCPPC -nodefaults -i- -e2 -D _XP_Core_ -D XP_MAC {IncludeFiles} "{{SourceFile}}" ╢
  29.     > "{{ResourceDir}}Temp_XPStrings.r"
  30.  
  31. if {status} != 0
  32.     Exit 1
  33. end if
  34.  
  35. If "`Exists -d "{TargetDir}Essential Files:"`" == ""
  36.     NewFolder "{{TargetDir}}Essential Files"
  37. End
  38. Directory "{{ResourceDir}}" # set to the correct folder
  39. perl resdef.pl Temp_XPStrings.r
  40. delete Temp_XPStrings.r
  41. Rez -t 'NSPL' -c MOSS -i "{RIncludes}" ╢
  42.     -o "{{TargetDir}}Essential Files:Netscape Resources" ╢
  43.     xpstring.r
  44. delete xpstring.r
  45. Rez -append -i "{RIncludes}" -i "{{ns}}cmd:macfe:include:" ╢
  46.     -o "{{TargetDir}}Essential Files:Netscape Resources" ╢
  47.     MacSTR.r
  48. Rez -append -i "{RIncludes}" -i "{{ns}}cmd:macfe:include:" ╢
  49.     -o "{{TargetDir}}Essential Files:Netscape Resources" ╢
  50.     exception_str.r
  51.     
  52. # Duplicate the Desktop icon scripts
  53.  
  54. Set        SourceDir "{{ns}}cmd:macfe:desktop:"
  55. Set        DestDir      "{{TargetDir}}Essential Files:"
  56.  
  57. Duplicate -y "{{SourceDir}}Messenger script" "{{DestDir}}Messenger Inbox shortcut"
  58. Duplicate -y "{{SourceDir}}Navigator script" "{{DestDir}}Navigator shortcut"
  59.  
  60. Quit # get rid of ToolServer
  61.