summary refs log tree commit diff
path: root/pkgs/build-support/make-wrapper/make-wrapper.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-04-05 18:13:59 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-04-05 18:13:59 +0000
commite01be47e532ba8f8426bb676619079fcea1668f1 (patch)
tree4e2cb3b5be654611b8ba9c421961348f461142f5 /pkgs/build-support/make-wrapper/make-wrapper.sh
parent723dfe4240ef2390cd6cefb5363b2b5efebd26f9 (diff)
downloadnixpkgs-e01be47e532ba8f8426bb676619079fcea1668f1.tar
nixpkgs-e01be47e532ba8f8426bb676619079fcea1668f1.tar.gz
nixpkgs-e01be47e532ba8f8426bb676619079fcea1668f1.tar.bz2
nixpkgs-e01be47e532ba8f8426bb676619079fcea1668f1.tar.lz
nixpkgs-e01be47e532ba8f8426bb676619079fcea1668f1.tar.xz
nixpkgs-e01be47e532ba8f8426bb676619079fcea1668f1.tar.zst
nixpkgs-e01be47e532ba8f8426bb676619079fcea1668f1.zip
* aclocal wrapper: skip directories in ACLOCAL_PATH that don't exist,
  otherwise aclocal barfs.  Updated the builder to use makeWrapper
* Made Automake 1.10 the default.
* Fixed `make check' in Automake by turning off indented logging in
  Make (there is a flag for that now).
* Disabled the `make check' in Automake by default because it takes a
  REALLY long time (e.g. more than 2 hours on Cygwin, 50 minutes on
  Darwin, 25 minutes on Linux) which is a lot for a package that
  otherwise takes 10 seconds to build.  We can add a Hydra job with
  doCheck enabled to do regression testing.
* make-wrapper: allow --run commands to add additional flags to the
  invocation of the wrapped program.  An example is the aclocal
  wrapper: it adds additional -I ... flags.
* make-wrapper: call the wrapped program .foo-wrapped instead of
  .wrapped-foo to make it easier to tell programs apart in `ps'
  output.

svn path=/nixpkgs/branches/stdenv-updates/; revision=14885
Diffstat (limited to 'pkgs/build-support/make-wrapper/make-wrapper.sh')
-rw-r--r--pkgs/build-support/make-wrapper/make-wrapper.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/build-support/make-wrapper/make-wrapper.sh b/pkgs/build-support/make-wrapper/make-wrapper.sh
index c13f623bcda..461f30780ee 100644
--- a/pkgs/build-support/make-wrapper/make-wrapper.sh
+++ b/pkgs/build-support/make-wrapper/make-wrapper.sh
@@ -66,7 +66,9 @@ makeWrapper() {
         fi
     done
 
-    echo "exec \"$original\" $flagsBefore \"\$@\"" >> $wrapper
+    # Note: extraFlagsArray is an array containing additional flags
+    # that may be set by --run actions.
+    echo exec "$original" $flagsBefore '"${extraFlagsArray[@]}"' '"$@"' >> $wrapper
     
     chmod +x $wrapper
 }
@@ -90,7 +92,7 @@ filterExisting() {
 # Syntax: wrapProgram <PROGRAM> <MAKE-WRAPPER FLAGS...>
 wrapProgram() {
     local prog="$1"
-    local hidden="$(dirname "$prog")/.wrapped-$(basename "$prog")"
+    local hidden="$(dirname "$prog")/.$(basename "$prog")"-wrapped
     mv $prog $hidden
     makeWrapper $hidden $prog "$@"
 }