Commits

Bill Bumgarner  committed 67720ec

Consolidated post_install and post_upgrade into preflight script. It is safer to delete legacy cruft prior to installing new cruft. Integrated removal of examples and templates from the pre-0.9 location of /Developer.

Finished moving templates and language specifications to /Library/Developer as per Apple's informal/unsupported recommendation. Documentation and Examples can also be found in /Library/Developer now.

  • Participants
  • Parent commits aecc038

Comments (0)

Files changed (5)

File pyobjc/Doc/coding-style.html

 <li>Add appropriate ReST style fields to the top of the document as comments:<pre>
 # Author: David Goodger
 # Contact: goodger@users.sourceforge.net
-# Revision: $Revision: 1.3 $
-# Date: $Date: 2003/04/18 20:01:31 $
+# Revision: $Revision: 1.4 $
+# Date: $Date: 2003/04/19 17:07:26 $
 # Copyright: This module has been placed in the public domain.
 </pre>
 </li>

File pyobjc/Installer Package/Resources/post_install

-#!/bin/sh
-
-# Version of PyObjC before 0.9 installed python files in the site-packages
-# directory, from 0.9 onwards we install in site-packages/PyObjC.
-
-for dn in AddressBook AppKit Foundation autoGil.so objc
-do
-	rm -rf "/usr/lib/python2.2/site-packages/${dn}"
-done
-
-exit 0

File pyobjc/Installer Package/Resources/post_upgrade

-#!/bin/sh
-
-# Version of PyObjC before 0.9 installed python files in the site-packages
-# directory, from 0.9 onwards we install in site-packages/PyObjC.
-
-for dn in AddressBook AppKit Foundation autoGil.so objc
-do
-	rm -rf "/usr/lib/python2.2/site-packages/${dn}"
-done
-
-exit 0

File pyobjc/Installer Package/Resources/preflight

+#!/bin/sh
+
+# Make sure 0.8 and 0.7 are removed completely.  In the future,
+# the package will auto update previous versions.
+
+rm -rf "/Developer/ProjectBuilder Extras/Project Templates/Application/Cocoa-Python Application"
+
+rm -rf "/Developer/Examples/PyObjC"
+
+rm -rf "/Library/Receipts/PyObjC-0.8.pkg"
+
+# Versions of PyObjC before 0.9 installed python files in the site-packages
+# directory, from 0.9 onwards we install in site-packages/PyObjC.
+
+for dn in AddressBook AppKit Foundation autoGil.so objc
+do
+	rm -rf "/usr/lib/python2.2/site-packages/${dn}"
+done
+
+exit 0

File pyobjc/Scripts/make_distrib.py

 templateDestination = os.path.join(basedir, 'Library', 'Developer', 'ProjectBuilder Extras',
                                    'Project Templates', 'Application')
 
-for dname in os.listdir('Project Templates'):
+templateDir = os.path.join('ProjectBuilder Extras', 'Project Templates')
+for dname in os.listdir(templateDir):
     if dname == 'CVS': continue
-    path = os.path.join('Project Templates', dname)
+    path = os.path.join(templateDir, dname)
     if not os.path.isdir(path): continue
     shutil.copytree(path, os.path.join(templateDestination, dname))