# -*- Mode: Fundamental -*- # # The contents of this file are subject to the Netscape Public License # Version 1.0 (the "NPL"); you may not use this file except in # compliance with the NPL. You may obtain a copy of the NPL at # http://www.mozilla.org/NPL/ # # Software distributed under the NPL is distributed on an "AS IS" basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL # for the specific language governing rights and limitations under the # NPL. # # The Initial Developer of this code under the NPL is Netscape # Communications Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All Rights # Reserved. # # MakeXPStrings set echo 1 Evaluate % = ("{{SourceFile}}" =~ /(Å:)¨0Å/) Directory "{{¨0}}" Set mozilla "::::" # project folder relative Set -e ResourceDir "{{mozilla}}cmd:macfe:restext:" Set TargetDir "{{mozilla}}dist:client_debug:" if {DEBUG} Set TargetDir "{{mozilla}}dist:client_debug:" else Set TargetDir "{{mozilla}}dist:client:" end if # Set RIncludes "{{mozilla}}lib:mac:MW:Headers:Rez_Headers:" MWCPPC -nodefaults -i- -e2 -D _XP_Core_ {IncludeFiles} "{{SourceFile}}" ¶ > "{{ResourceDir}}Temp_XPStrings.r" if {status} != 0 Exit 1 end if If "`Exists -d "{TargetDir}Essential Files:"`" == "" NewFolder "{{TargetDir}}Essential Files" End Directory "{{ResourceDir}}" # set to the correct folder perl resdef.pl Temp_XPStrings.r delete Temp_XPStrings.r Rez -t 'NSPL' -c MOZZ {IncludeFiles} ¶ -o "{{TargetDir}}Essential Files:Mozilla Resources" ¶ xpstring.r delete xpstring.r Rez -append {IncludeFiles} -i "{{mozilla}}cmd:macfe:include:" ¶ -o "{{TargetDir}}Essential Files:Mozilla Resources" ¶ MacSTR.r Rez -append {IncludeFiles} -i "{{mozilla}}cmd:macfe:include:" ¶ -o "{{TargetDir}}Essential Files:Mozilla Resources" ¶ exception_str.r Quit # get rid of ToolServer