summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-09-01 15:37:07 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-09-01 15:37:07 (GMT)
commitfaad995380141f6a71497ec6ec4a9a0a9db756c9 (patch)
tree030cc42886b5370287d99534dc10337dc617ecfa /Mac/scripts
parent04fb06f32001217c93713e8535b6df09b5477d8c (diff)
downloadcpython-faad995380141f6a71497ec6ec4a9a0a9db756c9.zip
cpython-faad995380141f6a71497ec6ec4a9a0a9db756c9.tar.gz
cpython-faad995380141f6a71497ec6ec4a9a0a9db756c9.tar.bz2
Fullbuild now maintains BUILDNO for mac builds
Diffstat (limited to 'Mac/scripts')
-rw-r--r--Mac/scripts/fullbuild.py23
-rw-r--r--Mac/scripts/fullbuild.rsrc.hqx27
2 files changed, 35 insertions, 15 deletions
diff --git a/Mac/scripts/fullbuild.py b/Mac/scripts/fullbuild.py
index d81b650..ff090d0 100644
--- a/Mac/scripts/fullbuild.py
+++ b/Mac/scripts/fullbuild.py
@@ -3,17 +3,21 @@
# distribution can be made, and puts it all in the right place.
#
# It expects the projects to be in the places where Jack likes them:
-# in directories named like 'build.macppc.shared'. That is fixable,
+# in directories named like 'build.mac'. That is fixable,
# however.
#
# NOTE: You should proably make a copy of python with which to execute this
# script, rebuilding running programs does not work...
+MACBUILDNO=":Mac:Include:macbuildno.h"
+
import os
import sys
import macfs
import MacOS
import EasyDialogs
+import regex
+import string
import addpack
import aetools
@@ -180,6 +184,21 @@ I_APPLETS : (buildapplet, None, [
":Mac:scripts:ConfigurePython.py"
]),
}
+
+def incbuildno(filename):
+ fp = open(filename)
+ line = fp.readline()
+ fp.close()
+
+ pat = regex.compile('#define BUILD \([0-9][0-9]*\)')
+ pat.match(line)
+ buildno = pat.group(1)
+ if not buildno:
+ raise 'Incorrect macbuildno.h line', line
+ new = string.atoi(buildno) + 1
+ fp = open(filename, 'w')
+ fp.write('#define BUILD %d\n'%new)
+ fp.close()
def main():
try:
@@ -194,6 +213,8 @@ def main():
todo = handle_dialog()
+ incbuildno(os.path.join(dir, MACBUILDNO))
+
instructions = []
for i in todo:
instructions.append(BUILD_DICT[i])
diff --git a/Mac/scripts/fullbuild.rsrc.hqx b/Mac/scripts/fullbuild.rsrc.hqx
index 86696a8..8e8171a 100644
--- a/Mac/scripts/fullbuild.rsrc.hqx
+++ b/Mac/scripts/fullbuild.rsrc.hqx
@@ -1,17 +1,16 @@
(This file must be converted with BinHex 4.0)
-:$QCeE'aLG@PXC#jbFh*M!(*cFQ058d9%!3#3"`-0T%X!N!3"!!!!!XF!!!((!!!
+:$QCeE'aLG@PXC#jbFh*M!(*cFQ058d9%!3#3"`,MLjS!N!3"!!!!!Td!!!'G!!!
!4J!!4dJ-8f0bC@9Z)%9KFf@U)!)!!!"45f9i8f0&B5%!$QCeE'aLG@PXC#jbFh*
-MC!)!!!!rN!J!N!BrN!J!N"L`'j8e!*!'!`d!N!S1!!!!4dJ)8fpQG%YPHA0Q!J!
-#!&&,CAK4H&0V)3!!0!"!!*!%4iJ!N!jj0J!!IJ#S3A!!UADPfJ#3)Sk4!!F!N!`
-8!*!%&3!S!#J!q`(h!!%"!!%!N!8#!*!%!DS!%`#3"E3"KJ$)!F!%!Np,!*!&Y!!
-+!-J!4!3'3f&ZBf9X!*!&*!"R!$B!d38%3fpbC3#3"53!h`!f!8N&"e"XG@GTER2
-4!*!&*!&A!$B"`38+4AKdC@jcD@pZF`#3"6`!C`"1!0%&"%0[FQ8!N!8m!0m!6J&
-*"3G3E(9RD@jcd3#3"6`"9`"1!F%&#N9iG'9ZFfP[ER-!N!9F!'F!EJ$4"34'G@a
-X!*!&A!$I!'i"538&8feKE'aX!*!&G!"R!)B!d38%4R9XE!#3"A3!h`#'!8N&"90
-YB@aX53#3"C3!C`#Q!0%&#8CKG#"`FQpRF`-!N!@8!0m!TJ&*"3G"F("XCA4c9!#
-3"53!$3!d!&L)!e"33h3!N!8m!!d!6!"B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