From 2de8bb7d8e9ab00b649c51b7c49bb8909dd21893 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Tue, 23 Apr 2002 02:06:10 +0000 Subject: [PATCH] Build patches for IRIX. (Chad Austin) git-svn-id: http://scons.tigris.org/svn/scons/trunk@342 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- SConstruct | 9 +++++++-- doc/SConscript | 13 ++++++++----- src/CHANGES.txt | 4 ++++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/SConstruct b/SConstruct index dd880451..e41bf1e0 100644 --- a/SConstruct +++ b/SConstruct @@ -169,6 +169,9 @@ else: python_project_subinst_dir = lib_project project_script_subinst_dir = 'bin' + +zcat = 'gzip -d -c' + # # Figure out if we can handle .zip files. # @@ -257,6 +260,8 @@ env = Environment( 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, @@ -552,7 +557,7 @@ for p in [ scons ]: 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", ]) @@ -785,7 +790,7 @@ if change: # 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", ]) diff --git a/doc/SConscript b/doc/SConscript index 898f370e..c436fb48 100644 --- a/doc/SConscript +++ b/doc/SConscript @@ -36,9 +36,9 @@ Import('env', 'whereis') # # # -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) @@ -276,5 +276,8 @@ if man2html: # 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") diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 60c44254..5db4d54b 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -10,6 +10,10 @@ RELEASE 0.07 - + From Chad Austin: + + - Changes to build SCons packages on IRIX (and other *NIces). + From Charles Crain: - Internal cleanup of environment passing to function Actions. -- 2.26.2