summaryrefslogtreecommitdiffstats
path: root/doc/SConscript
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-08-20 17:48:17 (GMT)
committerSteven Knight <knight@baldmt.com>2004-08-20 17:48:17 (GMT)
commit6ec1c708ae25a616d3e32b5b654d896baf0369ac (patch)
tree374b9e988044ef05e129d0ebcf3eef3f706692d2 /doc/SConscript
parent84f00012c6e961df55c666abcfa1477578c81c34 (diff)
downloadSCons-6ec1c708ae25a616d3e32b5b654d896baf0369ac.zip
SCons-6ec1c708ae25a616d3e32b5b654d896baf0369ac.tar.gz
SCons-6ec1c708ae25a616d3e32b5b654d896baf0369ac.tar.bz2
Update the packaging SConscript files to be platform independent.
Diffstat (limited to 'doc/SConscript')
-rw-r--r--doc/SConscript15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/SConscript b/doc/SConscript
index ce5dd6d..0dd41d1 100644
--- a/doc/SConscript
+++ b/doc/SConscript
@@ -223,9 +223,8 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
if docs[doc].get('html') and jade:
cmds = [
- "rm -f ${TARGET.dir}/*.html",
+ Delete("${TARGET.dir}/*.html"),
"jw -b html -o ${TARGET.dir} $SOURCES",
- "mv -v ${TARGET.dir}/index.html $TARGET || true",
]
if tidy:
cmds.append("tidy -m -q $TARGET || true")
@@ -233,9 +232,9 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
Local(htmlindex)
cmds = [
- "rm -f ${TARGET.dir}/main.html",
+ Delete("${TARGET.dir}/main.html"),
"jw -u -b html -o ${TARGET.dir} $SOURCES",
- "mv -v ${TARGET.dir}/main.html $TARGET || true",
+ Move("$TARGET", "${TARGET.dir}/main.html"),
]
if tidy:
cmds.append("tidy -m -q $TARGET || true")
@@ -261,10 +260,10 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
if docs[doc].get('ps') and jadetex:
env.Command(ps, main, [
- "rm -f ${TARGET.dir}/%s" % out,
+ Delete("${TARGET.dir}/%s" % out),
"jw -b ps -o ${TARGET.dir} $SOURCES",
"mv ${TARGET.dir}/main.ps $TARGET",
- "rm -f ${TARGET.dir}/%s" % out,
+ Delete("${TARGET.dir}/%s" % out),
])
Local(ps)
@@ -286,10 +285,10 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
if docs[doc].get('pdf') and pdfjadetex:
env.Command(pdf, main, [
- "rm -f ${TARGET.dir}/%s" % out,
+ Delete("${TARGET.dir}/%s" % out),
"jw -b pdf -o ${TARGET.dir} $SOURCES",
"mv ${TARGET.dir}/main.pdf $TARGET",
- "rm -f ${TARGET.dir}/out",
+ Delete("${TARGET.dir}/out"),
])
Local(pdf)