3
0
Fork 0
forked from mirrors/nixpkgs

* Allow variables to be set to a specific value.

svn path=/nixpkgs/trunk/; revision=2359
This commit is contained in:
Eelco Dolstra 2005-03-09 19:07:23 +00:00
parent 031db34059
commit 6b25f34d77

View file

@ -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))]}