* Use the generic substituter in the generation of stdenv and gcc-wrapper.

svn path=/nixpkgs/trunk/; revision=2269
This commit is contained in:
Eelco Dolstra
2005-02-22 14:32:56 +00:00
parent 290fba0cb6
commit 2e0380b7a0
7 changed files with 66 additions and 46 deletions
@@ -22,6 +22,13 @@ substitute() {
sedArgs=("${sedArgs[@]}" "-e" "s^@${varName}@^${!varName}^g")
fi
if test "$p" = "--subst-var-by"; then
varName=${params[$((n + 1))]}
replacement=${params[$((n + 2))]}
n=$((n + 2))
sedArgs=("${sedArgs[@]}" "-e" "s^@${varName}@^$replacement^g")
fi
done
sed "${sedArgs[@]}" < "$input" > "$output".tmp