Commit faad9953 authored by Jack Jansen's avatar Jack Jansen

Fullbuild now maintains BUILDNO for mac builds

parent 04fb06f3
...@@ -3,17 +3,21 @@ ...@@ -3,17 +3,21 @@
# distribution can be made, and puts it all in the right place. # 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: # 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. # however.
# #
# NOTE: You should proably make a copy of python with which to execute this # NOTE: You should proably make a copy of python with which to execute this
# script, rebuilding running programs does not work... # script, rebuilding running programs does not work...
MACBUILDNO=":Mac:Include:macbuildno.h"
import os import os
import sys import sys
import macfs import macfs
import MacOS import MacOS
import EasyDialogs import EasyDialogs
import regex
import string
import addpack import addpack
import aetools import aetools
...@@ -181,6 +185,21 @@ I_APPLETS : (buildapplet, None, [ ...@@ -181,6 +185,21 @@ I_APPLETS : (buildapplet, None, [
]), ]),
} }
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(): def main():
try: try:
h = Res.OpenResFile('fullbuild.rsrc') h = Res.OpenResFile('fullbuild.rsrc')
...@@ -194,6 +213,8 @@ def main(): ...@@ -194,6 +213,8 @@ def main():
todo = handle_dialog() todo = handle_dialog()
incbuildno(os.path.join(dir, MACBUILDNO))
instructions = [] instructions = []
for i in todo: for i in todo:
instructions.append(BUILD_DICT[i]) instructions.append(BUILD_DICT[i])
......
(This file must be converted with BinHex 4.0) (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!!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4R9XE!#3"A3!h`#
YB@aX53#3"C3!C`#Q!0%&#8CKG#"`FQpRF`-!N!@8!0m!TJ&*"3G"F("XCA4c9!# '!8N&"90YB@aX53#3"C3!h`#Q!8N&"d&`F'aPG(08!*!&*!!0!$3!@)J$8&"$G!#
3"53!$3!d!&L)!e"33h3!N!8m!!d!6!"BL!-f1%YB!*!&A!!0!'`!@)J+8h4KG'P 3"6`!$3"-!&L)!cBi5eJ!N!9F!!d!E!"BL!T6G'&dD@-J8&"$!*!&G!!0!)3!@)J
M)&"33`#3"A3!$3#%!&L)#P0dBA4TBb!f1%X!N!@8!!d!T!"BL!40DA0M!*!&#!# +8h4KG'PM)$Bi5`#3"C3!$3#N!&L)"%eTFf-!N!8)!)m!'!%JL"96C@aPBh3JGfK
2!"J"))J98f9XC@0d)(GSBA3JG'mJBR9TE'3kE!!!!3!!!!,(!!!"a`!!!%B#,@5 KG#"dEb"LG@PXC$TX!!!"!!!!!Td!!!'G!!!!4J&LES`a0J!!!"`!4J!"4%a24`!
N%83!!!!F!%B!!84-6dF!!!!54%P86!!!!"i#!2rr!*!%!LeMI!)!rrm!!!!C!Le !!"*%594-!!!!(J)!rrm!N!J#!2rr!!!!'3&LEK"R-!:
L@(*$:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment