summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-08-16 04:26:13 (GMT)
committerSteven Knight <knight@baldmt.com>2003-08-16 04:26:13 (GMT)
commitaed679bb2f98521dbe07cba65ef22e1c482993f0 (patch)
tree9b8ad7db3bd0a0169a93971a7698fd936b1a2e1a /doc
parent6dc48f2b5298d70fdfa38911a421a9daab6e7ca0 (diff)
downloadSCons-aed679bb2f98521dbe07cba65ef22e1c482993f0.zip
SCons-aed679bb2f98521dbe07cba65ef22e1c482993f0.tar.gz
SCons-aed679bb2f98521dbe07cba65ef22e1c482993f0.tar.bz2
Update the branch for next release.
Diffstat (limited to 'doc')
-rw-r--r--doc/MANIFEST1
-rw-r--r--doc/SConscript42
-rw-r--r--doc/design/MANIFEST13
-rw-r--r--doc/man/MANIFEST2
-rw-r--r--doc/python10/MANIFEST15
-rw-r--r--doc/reference/MANIFEST21
-rw-r--r--doc/user/MANIFEST31
7 files changed, 112 insertions, 13 deletions
diff --git a/doc/MANIFEST b/doc/MANIFEST
new file mode 100644
index 0000000..008afab
--- /dev/null
+++ b/doc/MANIFEST
@@ -0,0 +1 @@
+scons.mod
diff --git a/doc/SConscript b/doc/SConscript
index e3b6eff..b973fd4 100644
--- a/doc/SConscript
+++ b/doc/SConscript
@@ -82,11 +82,11 @@ def scansgml(node, env, target):
for m in matches:
file, format = m
if format and file[-len(format):] != format:
- file = file + format
+ file = file + '.' + format
if not os.path.isabs(file):
a = []
f = file
- while 1:
+ while f:
f, tail = os.path.split(f)
if tail == 'doc':
break
@@ -97,7 +97,8 @@ def scansgml(node, env, target):
return includes
s = Scanner(name = 'sgml', function = scansgml, skeys = ['.sgml', '.mod'])
-env = env.Copy(SCANNERS = [s])
+orig_env = env
+env = orig_env.Copy(SCANNERS = [s])
if jw:
#
@@ -106,8 +107,8 @@ if jw:
# rebuild all the docs every time just because the date changes.
#
date, ver, rev = env.Dictionary('DATE', 'VERSION', 'REVISION')
- #version_sgml = File(os.path.join(build, "version.sgml"))
- version_sgml = File("version.sgml")
+ version_sgml = File(os.path.join(build, "version.sgml"))
+ #version_sgml = File("version.sgml")
verfile = str(version_sgml)
try:
os.unlink(verfile)
@@ -165,17 +166,32 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
# We have to tell SCons to scan the top-level SGML files which
# get included by the document SGML files in the subdirectories.
#
- included_sgml = [
- 'scons.mod',
- 'copyright.sgml',
- ]
+ manifest = File('MANIFEST').rstr()
+ src_files = map(lambda x: x[:-1], open(manifest).readlines())
+ for s in src_files:
+ base, ext = os.path.splitext(s)
+ if ext in ['.fig', '.jpg']:
+ orig_env.Install(build, s)
+ else:
+ orig_env.SCons_revision(os.path.join(build, s), s)
#
# For each document, build the document itself in HTML, Postscript,
# and PDF formats.
#
for doc in docs.keys():
- main = os.path.join(doc, 'main.sgml')
+ manifest = File(os.path.join(doc, 'MANIFEST')).rstr()
+ src_files = map(lambda x: x[:-1],
+ open(manifest).readlines())
+ for s in src_files:
+ base, ext = os.path.splitext(s)
+ if ext in ['.fig', '.jpg']:
+ orig_env.Install(os.path.join(build, doc), os.path.join(doc, s))
+ else:
+ orig_env.SCons_revision(os.path.join(build, doc, s),
+ os.path.join(doc, s))
+
+ main = os.path.join(build, doc, 'main.sgml')
out = 'main.out'
# Hard-coding the scons-src path is a bit of a hack. This can
@@ -218,7 +234,7 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
if fig2dev:
for g in docs[doc].get('graphics', []):
- fig = os.path.join(doc, '%s.fig' % g)
+ fig = os.path.join(build, doc, '%s.fig' % g)
jpg = os.path.join(htmldir, '%s.jpg' % g)
env.Command(jpg, fig,
"%s -L jpeg -q 100 $SOURCES $TARGET" % fig2dev)
@@ -241,7 +257,7 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
if fig2dev:
for g in docs[doc].get('graphics', []):
- fig = os.path.join(doc, '%s.fig' % g)
+ fig = os.path.join(build, doc, '%s.fig' % g)
eps = os.path.join(build, 'PS', '%s.eps' % g)
env.Command(eps, fig, "%s -L eps $SOURCES $TARGET" % fig2dev)
env.Depends(ps, eps)
@@ -308,7 +324,7 @@ for man in man_page_list:
# for easy distribution to the web site.
#
if tar_deps:
- tar_list = map(lambda x: x[11:], tar_list)
+ tar_list = string.join(map(lambda x: x[11:], tar_list))
env.Command(doc_tar_gz, tar_deps,
"tar cf${TAR_HFLAG} - -C build/doc %s | gzip > $TARGET" % tar_list)
Local(doc_tar_gz)
diff --git a/doc/design/MANIFEST b/doc/design/MANIFEST
new file mode 100644
index 0000000..72d78be
--- /dev/null
+++ b/doc/design/MANIFEST
@@ -0,0 +1,13 @@
+acks.sgml
+bground.sgml
+copyright.sgml
+engine.fig
+engine.jpg
+engine.sgml
+goals.sgml
+install.sgml
+intro.sgml
+issues.sgml
+main.sgml
+native.sgml
+overview.sgml
diff --git a/doc/man/MANIFEST b/doc/man/MANIFEST
new file mode 100644
index 0000000..8e69d1c
--- /dev/null
+++ b/doc/man/MANIFEST
@@ -0,0 +1,2 @@
+scons.1
+sconsign.1
diff --git a/doc/python10/MANIFEST b/doc/python10/MANIFEST
new file mode 100644
index 0000000..56a94d4
--- /dev/null
+++ b/doc/python10/MANIFEST
@@ -0,0 +1,15 @@
+abstract.sgml
+acks.sgml
+arch.fig
+builder.fig
+copyright.sgml
+design.sgml
+future.sgml
+install.sgml
+intro.sgml
+job-task.fig
+main.sgml
+node.fig
+process.sgml
+scanner.fig
+sig.fig
diff --git a/doc/reference/MANIFEST b/doc/reference/MANIFEST
new file mode 100644
index 0000000..1ea958e
--- /dev/null
+++ b/doc/reference/MANIFEST
@@ -0,0 +1,21 @@
+Alias.sgml
+CFile.sgml
+CXXFile.sgml
+Command.sgml
+Install.sgml
+InstallAs.sgml
+Library.sgml
+Object.sgml
+PCH.sgml
+PDF.sgml
+PostScript.sgml
+Program.sgml
+RES.sgml
+SharedLibrary.sgml
+SharedObject.sgml
+StaticLibrary.sgml
+StaticObject.sgml
+copyright.sgml
+errors.sgml
+main.sgml
+preface.sgml
diff --git a/doc/user/MANIFEST b/doc/user/MANIFEST
new file mode 100644
index 0000000..134a24b
--- /dev/null
+++ b/doc/user/MANIFEST
@@ -0,0 +1,31 @@
+actions.sgml
+alias.sgml
+ant.sgml
+builders-built-in.sgml
+builders-commands.sgml
+builders-writing.sgml
+caching.sgml
+cons.pl
+cons.sgml
+copyright.sgml
+default.sgml
+depends.sgml
+environments.sgml
+errors.sgml
+example.sgml
+help.sgml
+hierarchy.sgml
+install.sgml
+libraries.sgml
+main.sgml
+make.sgml
+precious.sgml
+preface.sgml
+repositories.sgml
+run.sgml
+scanners.sgml
+separate.sgml
+simple.sgml
+sourcecode.sgml
+troubleshoot.sgml
+variants.sgml