From f68d7228f1bbf1b64f949dff3c729f076fa7fb4b Mon Sep 17 00:00:00 2001 From: stevenknight Date: Mon, 4 Feb 2002 04:11:08 +0000 Subject: [PATCH] Finally, eat our own dog food: start using SCons to build its own packages. git-svn-id: http://scons.tigris.org/svn/scons/trunk@240 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- Construct | 12 ++++++++++++ HOWTO/release.txt | 4 ++-- SConstruct | 7 ++++--- config | 2 +- doc/SConscript | 12 ++++++------ 5 files changed, 25 insertions(+), 12 deletions(-) diff --git a/Construct b/Construct index fc931131..fce4470a 100644 --- a/Construct +++ b/Construct @@ -27,6 +27,18 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +print <<_EOF_; + + Using Cons to build the SCons packages is no longer supported, + and this Construct file is deprecated. + + Use SCons to build its own packages instead. + + See the README file for details. + +_EOF_ +exit 0; + $project = 'scons'; Default qw( . ); diff --git a/HOWTO/release.txt b/HOWTO/release.txt index 5fbd264d..ca8bbed5 100644 --- a/HOWTO/release.txt +++ b/HOWTO/release.txt @@ -83,9 +83,9 @@ Things to do to release a new version of SCons: # Change the hard-coded package version numbers # in the following files. - aecp Construct debian/changelog rpm/scons.spec + aecp SConstruct debian/changelog rpm/scons.spec - vi Construct debian/changelog rpm/scons.spec + vi SConstruct debian/changelog rpm/scons.spec # Optionally, do the same in the following: [optional] aecp HOWTO/change.txt diff --git a/SConstruct b/SConstruct index c07e0201..5c09e435 100644 --- a/SConstruct +++ b/SConstruct @@ -34,6 +34,7 @@ import sys import time project = 'scons' +default_version = '0.05' Default('.') @@ -96,7 +97,7 @@ except: if aesub: revision = os.popen(aesub + " \\$version", "r").read()[:-1] else: - revision = '0.04' + revision = default_version a = string.split(revision, '.') arr = [a[0]] @@ -120,7 +121,7 @@ revision = string.join(arr, '.') # return str #arr = map(lambda x, xxx=xxx: xxx(x), arr) #version = string.join(arr, '.') -version = '0.04' +version = default_version try: change = ARGUMENTS['change'] @@ -128,7 +129,7 @@ except: if aesub: change = os.popen(aesub + " \\$change", "r").read()[:-1] else: - change = '0.04' + change = default_version python_ver = sys.version[0:3] diff --git a/config b/config index 445a1b13..53873e34 100644 --- a/config +++ b/config @@ -34,7 +34,7 @@ * if the file is not in the change. Look in aesub(5) for more information * about command substitutions. */ -build_command = "cons date='${DAte %Y/%m/%d %H:%M:%S}' developer=${DEVeloper} version=${VERsion} change=${Change}"; +build_command = "SCONS_LIB_DIR=${Development_Directory}/src/engine python ${Source src/script/scons.py} date='${DAte %Y/%m/%d %H:%M:%S}' developer=${DEVeloper} version=${VERsion} change=${Change}"; /* * The rules used in the User Guide all remove their targets before diff --git a/doc/SConscript b/doc/SConscript index cb9df1bd..c706f1f9 100644 --- a/doc/SConscript +++ b/doc/SConscript @@ -53,7 +53,7 @@ jw = whereis('jw') tar_deps = [] tar_list = "" -entity_re = re.compile(r'/', re.I) +entity_re = re.compile(r'', re.I) format_re = re.compile(r'<(?:graphic|imagedata)\s+fileref="([^"]*)"(?:\s+format="([^"]*)")?') # @@ -67,12 +67,12 @@ format_re = re.compile(r'<(?:graphic|imagedata)\s+fileref="([^"]*)"(?:\s+format= # defined as a SYSTEM entity is, in fact, a file included # somewhere in the document. # -def scansgml(contents, argument = None): +def scansgml(node, env, argument = None): includes = [] - matches = entity_re.findall(contents) - for m in matches: - includes.append(m[0]) + contents = node.get_contents() + + includes.extend(entity_re.findall(contents)) matches = format_re.findall(contents) for m in matches: @@ -173,7 +173,7 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. s = docs[doc].get('scan') if s: - File(os.path.join('build', 'doc', main)).scanner_set(s) + File(main).scanner_set(s) if docs[doc].get('html'): env.Command(htmlindex, main, [ -- 2.26.2