python_project_subinst_dir = lib_project
project_script_subinst_dir = 'bin'
+
+zcat = 'gzip -d -c'
+
#
# Figure out if we can handle .zip files.
#
UNZIP = unzip,
UNZIPFLAGS = '-o -d $UNPACK_ZIP_DIR',
+ ZCAT = zcat,
+
TEST_DEB_DIR = test_deb_dir,
TEST_RPM_DIR = test_rpm_dir,
TEST_SRC_TAR_GZ_DIR = test_src_tar_gz_dir,
src_files)
env.Command(unpack_tar_gz_files, tar_gz, [
"rm -rf %s" % os.path.join(unpack_tar_gz_dir, pkg_version),
- "zcat $SOURCES > .temp",
+ "$ZCAT $SOURCES > .temp",
"tar xf .temp -C $UNPACK_TAR_GZ_DIR",
"rm -f .temp",
])
# with separate zcat-tar-rm commands.
env.Command(unpack_tar_gz_files, src_tar_gz, [
"rm -rf %s" % os.path.join(unpack_tar_gz_dir, psv),
- "zcat $SOURCES > .temp",
+ "$ZCAT $SOURCES > .temp",
"tar xf .temp -C $UNPACK_TAR_GZ_DIR",
"rm -f .temp",
])
#
#
#
-doc_tar_gz = os.path.join('#build',
- 'dist',
- 'scons-doc-%s.tar.gz' % env.Dictionary('VERSION'))
+doc_tar = os.path.join('#build',
+ 'dist',
+ 'scons-doc-%s.tar' % env.Dictionary('VERSION'))
#
# We'll only try to build text files (for some documents)
# for easy distribution to the web site.
#
if tar_deps:
- env.Command(doc_tar_gz, tar_deps,
- "tar zc${TAR_HFLAG} -f $TARGET -C build/doc %s" % tar_list)
+ 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")