? patch.txt
? Modules/CPack.OSXScriptLauncher.rsrc.in
? Modules/CPack.OSXX11.main.scpt.in
Index: Modules/CPack.OSXScriptLauncher.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CPack.OSXScriptLauncher.in,v
retrieving revision 1.1
diff -r1.1 CPack.OSXScriptLauncher.in
Binary files /mounts/ram/cvsyQ3kdx and CPack.OSXScriptLauncher.in differ
Index: Modules/CPack.OSXX11.Info.plist.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CPack.OSXX11.Info.plist.in,v
retrieving revision 1.1
diff -r1.1 CPack.OSXX11.Info.plist.in
6a7,19
>   <key>CFBundleDocumentTypes</key>
>   <array>
>     <dict>
>       <key>CFBundleTypeExtensions</key>
>       <array>
>         <string>@CPACK_FILE_ASSOCIATION_EXTENSION@</string>
>       </array>
>       <key>CFBundleTypeName</key>
>       <string>@CPACK_FILE_ASSOCIATION_TYPE@</string>
>       <key>CFBundleTypeRole</key>
>       <string>Editor</string>
>     </dict>
>   </array>
Index: Modules/CPack.RuntimeScript.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CPack.RuntimeScript.in,v
retrieving revision 1.2
diff -r1.2 CPack.RuntimeScript.in
7a8,27
> version=`sw_vers -productVersion`
> if [ "$?" == "0" ]; then
>   major=${version%%\.*}
>   rest=${version#*\.}
>   minor=${rest%%\.*}
>   build=${rest#*\.}
> else
>   major=10
>   minor=4
>   build=0
> fi
> 
> echo $version
> echo "Major = $major"
> echo "Minor = $minor"
> echo "Build = $build"
> 
> 
> # if 10.5 or greater, then all the open-x11 stuff need not occur
> if ((( $major < 10 )) || ((( $major == 10)) && (( $minor < 5 )))); then
44a65
> fi
Index: Source/CPack/cmCPackOSXX11Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CPack/cmCPackOSXX11Generator.cxx,v
retrieving revision 1.5
diff -r1.5 cmCPackOSXX11Generator.cxx
6c6
<   Date:      $Date: 2007-10-31 12:50:17 $
---
>   Date:      $Date: 2007/10/31 12:50:17 $
91a92,94
>   std::string scriptDirectory = resourcesDirectory + "/Scripts";
>   std::string resourceFileName = this->GetOption("CPACK_PACKAGE_FILE_NAME");
>   resourceFileName += ".rsrc";
94a98
>   const char* scrDir = scriptDirectory.c_str();
95a100
>   const char* rsrcFile = resourceFileName.c_str();
126a132,135
>     !this->CopyResourcePlistFile("OSXX11.main.scpt", scrDir,
>       "main.scpt", true ) ||
>     !this->CopyResourcePlistFile("OSXScriptLauncher.rsrc", dir, 
>       rsrcFile, true) ||
