From 6b25f34d772dd250d40855cf0884705690ae8621 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Mar 2005 19:07:23 +0000 Subject: [PATCH] * Allow variables to be set to a specific value. svn path=/nixpkgs/trunk/; revision=2359 --- pkgs/build-support/make-wrapper/make-wrapper.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/build-support/make-wrapper/make-wrapper.sh b/pkgs/build-support/make-wrapper/make-wrapper.sh index bab89ec77ddc..3b1833cf69e2 100644 --- a/pkgs/build-support/make-wrapper/make-wrapper.sh +++ b/pkgs/build-support/make-wrapper/make-wrapper.sh @@ -10,6 +10,13 @@ makeWrapper() { for ((n = 2; n < ${#params[*]}; n += 1)); do p=${params[$n]} + if test "$p" = "--set"; then + varName=${params[$((n + 1))]} + value=${params[$((n + 2))]} + n=$((n + 2)) + echo "export $varName=$value" >> $wrapper + fi + if test "$p" = "--suffix"; then varName=${params[$((n + 1))]} separator=${params[$((n + 2))]}