]> git.saurik.com Git - wxWidgets.git/blobdiff - build/osx/makeprojects.applescript
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / build / osx / makeprojects.applescript
index fc1c2972ea8fc798a97a59da54ff59a7fb23b6a0..de5e2fa05f32cce121b6fa3f483c7a4c6fa03223 100644 (file)
@@ -43,11 +43,11 @@ on parseLib(theElement, theVariables, theConditions)
 end parseLib
 
 on parseNode(anElement, theVariables, theConditions)
-       if class of anElement is XML element and Â¬
+       if class of anElement is XML element and Â
                XML tag of anElement is "set" then
                parseEntry(anElement, theVariables, theConditions)
        else
-               if class of anElement is XML element and Â¬
+               if class of anElement is XML element and Â
                        XML tag of anElement is "lib" then
                        parseLib(anElement, theVariables, theConditions)
                end if
@@ -160,14 +160,26 @@ end readFilesList
 -- creates a new project file from the respective template
 on instantiateProject(theProject)
        set projectName to projectName of theProject
-       set template to POSIX file (osxBuildFolder & projectName & "_in.xcodeproj")
-       set projectFile to POSIX file (osxBuildFolder & projectName & ".xcodeproj")
+       set template to (osxBuildFolder & projectName & "_in.xcodeproj")
+       set projectFile to (osxBuildFolder & projectName & ".xcodeproj")
        tell application "Finder"
-               try
-                       delete file projectFile
-               end try
-               set duplicateProject to duplicate template with replace
-               set name of duplicateProject to (projectName & ".xcodeproj")
+               if exists projectFile as POSIX file then
+                       set templateContentFile to (osxBuildFolder & projectName & "_in.xcodeproj/project.pbxproj")
+                       set projectContentFile to (osxBuildFolder & projectName & ".xcodeproj/project.pbxproj")
+                       try
+                               tell me
+                                       do shell script "rm -f " & quoted form of projectContentFile
+                               end tell
+                       end try
+                       try
+                               tell me
+                                       do shell script "cp " & quoted form of templateContentFile & " " & quoted form of projectContentFile
+                               end tell
+                       end try
+               else
+                       set duplicateProject to duplicate (template as POSIX file) with replace
+                       set name of duplicateProject to (projectName & ".xcodeproj")
+               end if
        end tell
 end instantiateProject
 
@@ -203,84 +215,84 @@ end makeProject
 -- main
 
 init()
-set theProject to {conditions:{"PLATFORM_MACOSX=='1'", "TOOLKIT=='OSX_CARBON'", "WXUNIV=='0'", "USE_GUI=='1' and WXUNIV=='0'"}, projectName:¬
-       "wxcarbon", bklfiles:{¬
-       "../bakefiles/files.bkl", "../bakefiles/regex.bkl", "../bakefiles/tiff.bkl", "../bakefiles/png.bkl", "../bakefiles/jpeg.bkl", "../bakefiles/scintilla.bkl", "../bakefiles/expat.bkl"}, nodes:{¬
-       {label:"base", entries:{"$(BASE_SRC)"}}, Â¬
-       {label:"base", entries:{"$(BASE_AND_GUI_SRC)"}}, Â¬
-       {label:"core", entries:{"$(CORE_SRC)"}}, Â¬
-       {label:"net", entries:{"$(NET_SRC)"}}, Â¬
-       {label:"adv", entries:{"$(ADVANCED_SRC)"}}, Â¬
-       {label:"media", entries:{"$(MEDIA_SRC)"}}, Â¬
-       {label:"html", entries:{"$(HTML_SRC)"}}, Â¬
-       {label:"xrc", entries:{"$(XRC_SRC)"}}, Â¬
-       {label:"xml", entries:{"$(XML_SRC)"}}, Â¬
-       {label:"opengl", entries:{"$(OPENGL_SRC)"}}, Â¬
-       {label:"aui", entries:{"$(AUI_SRC)"}}, Â¬
-       {label:"ribbon", entries:{"$(RIBBON_SRC)"}}, Â¬
-       {label:"propgrid", entries:{"$(PROPGRID_SRC)"}}, Â¬
-       {label:"richtext", entries:{"$(RICHTEXT_SRC)"}}, Â¬
-       {label:"stc", entries:{"$(STC_SRC)"}}, Â¬
-       {label:"libtiff", entries:{"$(wxtiff)"}}, Â¬
-       {label:"libjpeg", entries:{"$(wxjpeg)"}}, Â¬
-       {label:"libpng", entries:{"$(wxpng)"}}, Â¬
-       {label:"libregex", entries:{"$(wxregex)"}}, Â¬
-       {label:"libscintilla", entries:{"$(wxscintilla)"}}, Â¬
-       {label:"libexpat", entries:{"$(wxexpat)"}} Â¬
+set theProject to {conditions:{"PLATFORM_MACOSX=='1'", "TOOLKIT=='OSX_CARBON'", "WXUNIV=='0'", "USE_GUI=='1' and WXUNIV=='0'"}, projectName:Â
+       "wxcarbon", bklfiles:{Â
+       "../bakefiles/files.bkl", "../bakefiles/regex.bkl", "../bakefiles/tiff.bkl", "../bakefiles/png.bkl", "../bakefiles/jpeg.bkl", "../bakefiles/scintilla.bkl", "../bakefiles/expat.bkl"}, nodes:{Â
+       {label:"base", entries:{"$(BASE_SRC)"}}, Â
+       {label:"base", entries:{"$(BASE_AND_GUI_SRC)"}}, Â
+       {label:"core", entries:{"$(CORE_SRC)"}}, Â
+       {label:"net", entries:{"$(NET_SRC)"}}, Â
+       {label:"adv", entries:{"$(ADVANCED_SRC)"}}, Â
+       {label:"media", entries:{"$(MEDIA_SRC)"}}, Â
+       {label:"html", entries:{"$(HTML_SRC)"}}, Â
+       {label:"xrc", entries:{"$(XRC_SRC)"}}, Â
+       {label:"xml", entries:{"$(XML_SRC)"}}, Â
+       {label:"opengl", entries:{"$(OPENGL_SRC)"}}, Â
+       {label:"aui", entries:{"$(AUI_SRC)"}}, Â
+       {label:"ribbon", entries:{"$(RIBBON_SRC)"}}, Â
+       {label:"propgrid", entries:{"$(PROPGRID_SRC)"}}, Â
+       {label:"richtext", entries:{"$(RICHTEXT_SRC)"}}, Â
+       {label:"stc", entries:{"$(STC_SRC)"}}, Â
+       {label:"libtiff", entries:{"$(wxtiff)"}}, Â
+       {label:"libjpeg", entries:{"$(wxjpeg)"}}, Â
+       {label:"libpng", entries:{"$(wxpng)"}}, Â
+       {label:"libregex", entries:{"$(wxregex)"}}, Â
+       {label:"libscintilla", entries:{"$(wxscintilla)"}}, Â
+       {label:"libexpat", entries:{"$(wxexpat)"}} Â
                }}
 makeProject(theProject)
 
-set theProject to {conditions:{"PLATFORM_MACOSX=='1'", "TOOLKIT=='OSX_COCOA'", "WXUNIV=='0'", "USE_GUI=='1' and WXUNIV=='0'"}, projectName:¬
-       "wxcocoa", bklfiles:{¬
-       "../bakefiles/files.bkl", "../bakefiles/regex.bkl", "../bakefiles/tiff.bkl", "../bakefiles/png.bkl", "../bakefiles/jpeg.bkl", "../bakefiles/scintilla.bkl", "../bakefiles/expat.bkl"}, nodes:{¬
-       {label:"base", entries:{"$(BASE_SRC)"}}, Â¬
-       {label:"base", entries:{"$(BASE_AND_GUI_SRC)"}}, Â¬
-       {label:"core", entries:{"$(CORE_SRC)"}}, Â¬
-       {label:"net", entries:{"$(NET_SRC)"}}, Â¬
-       {label:"adv", entries:{"$(ADVANCED_SRC)"}}, Â¬
-       {label:"media", entries:{"$(MEDIA_SRC)"}}, Â¬
-       {label:"html", entries:{"$(HTML_SRC)"}}, Â¬
-       {label:"xrc", entries:{"$(XRC_SRC)"}}, Â¬
-       {label:"xml", entries:{"$(XML_SRC)"}}, Â¬
-       {label:"opengl", entries:{"$(OPENGL_SRC)"}}, Â¬
-       {label:"aui", entries:{"$(AUI_SRC)"}}, Â¬
-       {label:"ribbon", entries:{"$(RIBBON_SRC)"}}, Â¬
-       {label:"propgrid", entries:{"$(PROPGRID_SRC)"}}, Â¬
-       {label:"richtext", entries:{"$(RICHTEXT_SRC)"}}, Â¬
-       {label:"stc", entries:{"$(STC_SRC)"}}, Â¬
-       {label:"libtiff", entries:{"$(wxtiff)"}}, Â¬
-       {label:"libjpeg", entries:{"$(wxjpeg)"}}, Â¬
-       {label:"libpng", entries:{"$(wxpng)"}}, Â¬
-       {label:"libregex", entries:{"$(wxregex)"}}, Â¬
-       {label:"libscintilla", entries:{"$(wxscintilla)"}}, Â¬
-       {label:"libexpat", entries:{"$(wxexpat)"}} Â¬
+set theProject to {conditions:{"PLATFORM_MACOSX=='1'", "TOOLKIT=='OSX_COCOA'", "WXUNIV=='0'", "USE_GUI=='1' and WXUNIV=='0'"}, projectName:Â
+       "wxcocoa", bklfiles:{Â
+       "../bakefiles/files.bkl", "../bakefiles/regex.bkl", "../bakefiles/tiff.bkl", "../bakefiles/png.bkl", "../bakefiles/jpeg.bkl", "../bakefiles/scintilla.bkl", "../bakefiles/expat.bkl"}, nodes:{Â
+       {label:"base", entries:{"$(BASE_SRC)"}}, Â
+       {label:"base", entries:{"$(BASE_AND_GUI_SRC)"}}, Â
+       {label:"core", entries:{"$(CORE_SRC)"}}, Â
+       {label:"net", entries:{"$(NET_SRC)"}}, Â
+       {label:"adv", entries:{"$(ADVANCED_SRC)"}}, Â
+       {label:"media", entries:{"$(MEDIA_SRC)"}}, Â
+       {label:"html", entries:{"$(HTML_SRC)"}}, Â
+       {label:"xrc", entries:{"$(XRC_SRC)"}}, Â
+       {label:"xml", entries:{"$(XML_SRC)"}}, Â
+       {label:"opengl", entries:{"$(OPENGL_SRC)"}}, Â
+       {label:"aui", entries:{"$(AUI_SRC)"}}, Â
+       {label:"ribbon", entries:{"$(RIBBON_SRC)"}}, Â
+       {label:"propgrid", entries:{"$(PROPGRID_SRC)"}}, Â
+       {label:"richtext", entries:{"$(RICHTEXT_SRC)"}}, Â
+       {label:"stc", entries:{"$(STC_SRC)"}}, Â
+       {label:"libtiff", entries:{"$(wxtiff)"}}, Â
+       {label:"libjpeg", entries:{"$(wxjpeg)"}}, Â
+       {label:"libpng", entries:{"$(wxpng)"}}, Â
+       {label:"libregex", entries:{"$(wxregex)"}}, Â
+       {label:"libscintilla", entries:{"$(wxscintilla)"}}, Â
+       {label:"libexpat", entries:{"$(wxexpat)"}} Â
                }}
 makeProject(theProject)
 
-set theProject to {conditions:{"PLATFORM_MACOSX=='1'", "TOOLKIT=='OSX_IPHONE'", "WXUNIV=='0'", "USE_GUI=='1' and WXUNIV=='0'"}, projectName:¬
-       "wxiphone", bklfiles:{¬
-       "../bakefiles/files.bkl", "../bakefiles/regex.bkl", "../bakefiles/tiff.bkl", "../bakefiles/png.bkl", "../bakefiles/jpeg.bkl", "../bakefiles/scintilla.bkl", "../bakefiles/expat.bkl"}, nodes:{¬
-       {label:"base", entries:{"$(BASE_SRC)"}}, Â¬
-       {label:"base", entries:{"$(BASE_AND_GUI_SRC)"}}, Â¬
-       {label:"core", entries:{"$(CORE_SRC)"}}, Â¬
-       {label:"net", entries:{"$(NET_SRC)"}}, Â¬
-       {label:"adv", entries:{"$(ADVANCED_SRC)"}}, Â¬
-       {label:"media", entries:{"$(MEDIA_SRC)"}}, Â¬
-       {label:"html", entries:{"$(HTML_SRC)"}}, Â¬
-       {label:"xrc", entries:{"$(XRC_SRC)"}}, Â¬
-       {label:"xml", entries:{"$(XML_SRC)"}}, Â¬
-       {label:"opengl", entries:{"$(OPENGL_SRC)"}}, Â¬
-       {label:"aui", entries:{"$(AUI_SRC)"}}, Â¬
-       {label:"ribbon", entries:{"$(RIBBON_SRC)"}}, Â¬
-       {label:"propgrid", entries:{"$(PROPGRID_SRC)"}}, Â¬
-       {label:"richtext", entries:{"$(RICHTEXT_SRC)"}}, Â¬
-       {label:"stc", entries:{"$(STC_SRC)"}}, Â¬
-       {label:"libtiff", entries:{"$(wxtiff)"}}, Â¬
-       {label:"libjpeg", entries:{"$(wxjpeg)"}}, Â¬
-       {label:"libpng", entries:{"$(wxpng)"}}, Â¬
-       {label:"libregex", entries:{"$(wxregex)"}}, Â¬
-       {label:"libscintilla", entries:{"$(wxscintilla)"}}, Â¬
-       {label:"libexpat", entries:{"$(wxexpat)"}} Â¬
+set theProject to {conditions:{"PLATFORM_MACOSX=='1'", "TOOLKIT=='OSX_IPHONE'", "WXUNIV=='0'", "USE_GUI=='1' and WXUNIV=='0'"}, projectName:Â
+       "wxiphone", bklfiles:{Â
+       "../bakefiles/files.bkl", "../bakefiles/regex.bkl", "../bakefiles/tiff.bkl", "../bakefiles/png.bkl", "../bakefiles/jpeg.bkl", "../bakefiles/scintilla.bkl", "../bakefiles/expat.bkl"}, nodes:{Â
+       {label:"base", entries:{"$(BASE_SRC)"}}, Â
+       {label:"base", entries:{"$(BASE_AND_GUI_SRC)"}}, Â
+       {label:"core", entries:{"$(CORE_SRC)"}}, Â
+       {label:"net", entries:{"$(NET_SRC)"}}, Â
+       {label:"adv", entries:{"$(ADVANCED_SRC)"}}, Â
+       {label:"media", entries:{"$(MEDIA_SRC)"}}, Â
+       {label:"html", entries:{"$(HTML_SRC)"}}, Â
+       {label:"xrc", entries:{"$(XRC_SRC)"}}, Â
+       {label:"xml", entries:{"$(XML_SRC)"}}, Â
+       {label:"opengl", entries:{"$(OPENGL_SRC)"}}, Â
+       {label:"aui", entries:{"$(AUI_SRC)"}}, Â
+       {label:"ribbon", entries:{"$(RIBBON_SRC)"}}, Â
+       {label:"propgrid", entries:{"$(PROPGRID_SRC)"}}, Â
+       {label:"richtext", entries:{"$(RICHTEXT_SRC)"}}, Â
+       {label:"stc", entries:{"$(STC_SRC)"}}, Â
+       {label:"libtiff", entries:{"$(wxtiff)"}}, Â
+       {label:"libjpeg", entries:{"$(wxjpeg)"}}, Â
+       {label:"libpng", entries:{"$(wxpng)"}}, Â
+       {label:"libregex", entries:{"$(wxregex)"}}, Â
+       {label:"libscintilla", entries:{"$(wxscintilla)"}}, Â
+       {label:"libexpat", entries:{"$(wxexpat)"}} Â
                }}
 makeProject(theProject)