# 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( . );
# 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
import time
project = 'scons'
+default_version = '0.05'
Default('.')
if aesub:
revision = os.popen(aesub + " \\$version", "r").read()[:-1]
else:
- revision = '0.04'
+ revision = default_version
a = string.split(revision, '.')
arr = [a[0]]
# 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']
if aesub:
change = os.popen(aesub + " \\$change", "r").read()[:-1]
else:
- change = '0.04'
+ change = default_version
python_ver = sys.version[0:3]
* 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
tar_deps = []
tar_list = ""
-entity_re = re.compile(r'<!entity\s+(?:%\s+)?(?:\S+)\s+SYSTEM\s+"([^"]*)">/', re.I)
+entity_re = re.compile(r'<!entity\s+(?:%\s+)?(?:\S+)\s+SYSTEM\s+"([^"]*)">', re.I)
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:
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, [