[Python-checkins] python/dist/src/Mac/OSX fixapplepython23.py, 1.3.6.1, 1.3.6.2
jhylton@users.sourceforge.net
jhylton at users.sourceforge.net
Sun Oct 16 07:24:36 CEST 2005
Update of /cvsroot/python/python/dist/src/Mac/OSX
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27718/Mac/OSX
Modified Files:
Tag: ast-branch
fixapplepython23.py
Log Message:
Merge head to branch (for the last time)
Index: fixapplepython23.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/OSX/fixapplepython23.py,v
retrieving revision 1.3.6.1
retrieving revision 1.3.6.2
diff -u -d -r1.3.6.1 -r1.3.6.2
--- fixapplepython23.py 7 Jan 2005 07:02:06 -0000 1.3.6.1
+++ fixapplepython23.py 16 Oct 2005 05:24:03 -0000 1.3.6.2
@@ -43,12 +43,12 @@
if lines[i][:len(start)] == start:
return i
return -1
-
+
def fix(makefile, do_apply):
"""Fix the Makefile, if required."""
fixed = False
lines = open(makefile).readlines()
-
+
for old, new in CHANGES:
i = findline(lines, new)
if i >= 0:
@@ -61,7 +61,7 @@
return 2
lines[i] = new
fixed = True
-
+
if fixed:
if do_apply:
print 'fixapplepython23: Fix to Apple-installed Python 2.3 applied'
@@ -74,7 +74,7 @@
else:
print 'fixapplepython23: No fix needed, appears to have been applied before'
return 0
-
+
def makescript(filename, compiler):
"""Create a wrapper script for a compiler"""
dirname = os.path.split(filename)[0]
@@ -85,7 +85,7 @@
fp.close()
os.chmod(filename, 0755)
print 'fixapplepython23: Created', filename
-
+
def main():
# Check for -n option
if len(sys.argv) > 1 and sys.argv[1] == '-n':
@@ -113,7 +113,6 @@
# Finally fix the makefile
rv = fix(MAKEFILE, do_apply)
sys.exit(rv)
-
+
if __name__ == '__main__':
main()
-
More information about the Python-checkins
mailing list