changeset 962:3d2261361009

Remove the --extract option from download.sh, since EXTRACT_ALL=1 does the same thing and everything _else_ is controlled by environment variables. At it to the config file and adjust existing users.
author Rob Landley <rob@landley.net>
date Mon, 01 Feb 2010 03:46:49 -0600
parents 1b971ccf5193
children dc25f0cbf93f
files clean.sh config download.sh sources/more/buildall.sh
diffstat 4 files changed, 17 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/clean.sh	Thu Jan 28 13:58:18 2010 -0600
+++ b/clean.sh	Mon Feb 01 03:46:49 2010 -0600
@@ -2,8 +2,11 @@
 
 # Delete all the target stages, to force them to rebuild next build.sh.
 
-# This leaves build.packages and build/host alone.  (You can delete those
-# too if you like, rm -rf build is safe, it just means ./download.sh --extract
-# and ./host-tools.sh will have to do their thing again, which takes a while.)
+# This leaves build.packages and build/host alone.  You can delete those
+# too if you like, "rm -rf build" is safe, it just means these steps will have
+# to do their thing again:
+#
+#   EXTRACT_ALL=1 ./download.sh
+#   ./host-tools.sh
 
 rm -rf build/*-*
--- a/config	Thu Jan 28 13:58:18 2010 -0600
+++ b/config	Mon Feb 01 03:46:49 2010 -0600
@@ -95,6 +95,16 @@
 
 # export SKIP_STRIP=1
 
+# Set this to tell download.sh to extract all the tarballs up-front right
+# after downloading them.  (Otherwise the tarball is extracted by setupfor
+# the first time the build tries to use it.)
+#
+# Extracting tarballs early is useful in order to run multiple build.sh
+# instances in parallel when building multiple targets, or to test that
+# new patches added to the sources/patches directory apply cleanly.
+
+# export EXTRACT_ALL=1
+
 # This isn't actually one of our variables, but a number of packages listen
 # to this to add extra debug info to their binaries.  (Use with SKIP_STRIP)
 
--- a/download.sh	Thu Jan 28 13:58:18 2010 -0600
+++ b/download.sh	Mon Feb 01 03:46:49 2010 -0600
@@ -5,11 +5,6 @@
 # The tarballs are downloaded into the "packages" directory, which is
 # created as needed.
 
-# The --extract option extracts/patches each tarball into "build/packages".
-# (Otherwise this is done later when the tarball is first used by a build.)
-
-[ "$1" == "--extract" ] && EXTRACT_ALL=yes
-
 source sources/include.sh || exit 1
 
 mkdir -p "$SRCDIR" || dienow
--- a/sources/more/buildall.sh	Thu Jan 28 13:58:18 2010 -0600
+++ b/sources/more/buildall.sh	Mon Feb 01 03:46:49 2010 -0600
@@ -29,7 +29,7 @@
 
 blank_tempdir build
 mkdir -p build/logs &&
-(./download.sh --extract 2>&1 &&
+(EXTRACT_ALL=1 ./download.sh 2>&1 &&
  ./host-tools.sh 2>&1 &&
  ./simple-cross-compiler.sh 2>&1 "$STATIC_CC_HOST" ||
  dienow) | tee build/logs/build-host-cc.txt | maybe_quiet