Commit 085a4e6b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '4d810ad2'

* commit '4d810ad2':
  configure: Use a different variable name in push/popvar
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 482c1ac8 4d810ad2
......@@ -475,21 +475,21 @@ get_safe(){
}
pushvar(){
for var in $*; do
eval level=\${${var}_level:=0}
eval ${var}_${level}="\$$var"
eval ${var}_level=$(($level+1))
for pvar in $*; do
eval level=\${${pvar}_level:=0}
eval ${pvar}_${level}="\$$pvar"
eval ${pvar}_level=$(($level+1))
done
}
popvar(){
for var in $*; do
eval level=\${${var}_level:-0}
for pvar in $*; do
eval level=\${${pvar}_level:-0}
test $level = 0 && continue
eval level=$(($level-1))
eval $var="\${${var}_${level}}"
eval ${var}_level=$level
eval unset ${var}_${level}
eval $pvar="\${${pvar}_${level}}"
eval ${pvar}_level=$level
eval unset ${pvar}_${level}
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment