* 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
|
for ((n = 2; n < ${#params[*]}; n += 1)); do
|
||||||
p=${params[$n]}
|
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
|
if test "$p" = "--suffix"; then
|
||||||
varName=${params[$((n + 1))]}
|
varName=${params[$((n + 1))]}
|
||||||
separator=${params[$((n + 2))]}
|
separator=${params[$((n + 2))]}
|
||||||
|
Loading…
Reference in New Issue
Block a user