summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/fullbuild.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-09-09 13:57:15 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-09-09 13:57:15 (GMT)
commit675cda07871513eedd212460b06facff5dc3242c (patch)
treed90f47ac488d7fa6ff231aa037150e8a332aa8cc /Mac/scripts/fullbuild.py
parent37b4b4996254fc7eeccfa61c941b46b61083265d (diff)
downloadcpython-675cda07871513eedd212460b06facff5dc3242c.zip
cpython-675cda07871513eedd212460b06facff5dc3242c.tar.gz
cpython-675cda07871513eedd212460b06facff5dc3242c.tar.bz2
Added a button to increment buildno, so it doesn't happen
automatically all the time.
Diffstat (limited to 'Mac/scripts/fullbuild.py')
-rw-r--r--Mac/scripts/fullbuild.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/Mac/scripts/fullbuild.py b/Mac/scripts/fullbuild.py
index ff090d0..2b3585d 100644
--- a/Mac/scripts/fullbuild.py
+++ b/Mac/scripts/fullbuild.py
@@ -39,6 +39,7 @@ DIALOG_ID = 512
I_OK=1
I_CANCEL=2
+I_INC_BUILDNO=19
I_CORE=3
I_PPC_PLUGINS=4
@@ -110,7 +111,7 @@ def buildfat(top, dummy, list):
print 'Building fat binary', dst
cfmfile.mergecfmfiles((src1, src2), dst)
-def handle_dialog():
+def handle_dialog(filename):
"""Handle selection dialog, return list of selected items"""
d = Dlg.GetNewDialog(DIALOG_ID, -1)
d.SetDialogDefaultItem(I_OK)
@@ -122,6 +123,9 @@ def handle_dialog():
break
if n == I_CANCEL:
return []
+ if n == I_INC_BUILDNO:
+ incbuildno(filename)
+ continue
if n < len(results):
results[n] = (not results[n])
tp, h, rect = d.GetDialogItem(n)
@@ -211,10 +215,8 @@ def main():
sys.exit(0)
dir = dir.as_pathname()
- todo = handle_dialog()
-
- incbuildno(os.path.join(dir, MACBUILDNO))
-
+ todo = handle_dialog(os.path.join(dir, MACBUILDNO))
+
instructions = []
for i in todo:
instructions.append(BUILD_DICT[i])