#
#
#
-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)
# 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)