forked from mirrors/nixpkgs
* Allow variables to be set to a specific value.
svn path=/nixpkgs/trunk/; revision=2359
This commit is contained in:
parent
031db34059
commit
6b25f34d77
|
@ -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))]}
|
||||
|
|
Loading…
Reference in a new issue