summaryrefslogtreecommitdiffstats
path: root/doc/SConscript
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-01-29 14:59:27 (GMT)
committerSteven Knight <knight@baldmt.com>2002-01-29 14:59:27 (GMT)
commit8d639e2c4ee5623f803344a09db1eb074946349a (patch)
tree8e05171cdffd18fd750775f2a9255e8b157a88d6 /doc/SConscript
parentce7092c12926b8cd2c0df191a68bb5d1f2693f45 (diff)
downloadSCons-8d639e2c4ee5623f803344a09db1eb074946349a.zip
SCons-8d639e2c4ee5623f803344a09db1eb074946349a.tar.gz
SCons-8d639e2c4ee5623f803344a09db1eb074946349a.tar.bz2
Fix SCon{struct,script} files to build SCons with itself.
Diffstat (limited to 'doc/SConscript')
-rw-r--r--doc/SConscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/SConscript b/doc/SConscript
index f14bc43..aedefd1 100644
--- a/doc/SConscript
+++ b/doc/SConscript
@@ -93,7 +93,10 @@ if jw:
#
date, ver, rev = env.Dictionary('DATE', 'VERSION', 'REVISION')
verfile = str(File("version.sgml"))
- os.unlink(verfile)
+ try:
+ os.unlink(verfile)
+ except:
+ pass
open(verfile, "w").write("""<!--
THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
-->
@@ -175,7 +178,7 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
if docs[doc].get('html'):
env.Command(htmlindex, main, [
"rm -f ${TARGET.dir}/*.html",
- "jw -b html -o {$TARGET.dir} $SOURCES",
+ "jw -b html -o ${TARGET.dir} $SOURCES",
"mv -v ${TARGET.dir}/index.html $TARGET || true",
])