Build: don't use an intermediate scons-doc.tar file.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 2 May 2002 18:07:42 +0000 (18:07 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 2 May 2002 18:07:42 +0000 (18:07 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@358 fdb21ef1-2011-0410-befe-b5e4ea1792b1

doc/SConscript

index c436fb4847303f49985ce4411998bb0f867a27ef..229cf25cc2a7d699c08bbd2d8174e7d54ad19b93 100644 (file)
@@ -36,9 +36,9 @@ Import('env', 'whereis')
 #
 #
 #
-doc_tar = os.path.join('#build',
-                       'dist',
-                       'scons-doc-%s.tar' % env.Dictionary('VERSION'))
+doc_tar_gz = os.path.join('#build',
+                          'dist',
+                          'scons-doc-%s.tar.gz' % env.Dictionary('VERSION'))
 
 #
 # We'll only try to build text files (for some documents)
@@ -276,8 +276,5 @@ if man2html:
 # for easy distribution to the web site.
 #
 if tar_deps:
-    doc_tar_gz = doc_tar + ".gz"
-    env.Command(doc_tar, tar_deps,
-                "tar cf${TAR_HFLAG} $TARGET -C build/doc %s" % tar_list)
-    env.Command(doc_tar_gz, doc_tar,
-                "gzip $SOURCES")
+    env.Command(doc_tar_gz, tar_deps,
+                "tar cf${TAR_HFLAG} - -C build/doc %s | gzip > $TARGET" % tar_list)