fix version guessing using proper evaluation

This commit is contained in:
Otavio Salvador 2007-10-08 09:17:45 -03:00 committed by Daniel Baumann
parent a516cac94f
commit 30fb0c2272
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ mkdir -p binary/.disk
ARCHITECTURE="$(echo ${LH_ARCHITECTURE} | sed -e 's# #/#g')"
DISTRIBUTION="$(echo ${LH_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')"
DISTRIBUTION="${DISTRIBUTION}$(echo ${LH_DISTRIBUTION} | cut -b 2-)"
eval VERSION="$$(echo VERSION_${LH_DISTRIBUTION})"
eval VERSION="$`echo VERSION_${LH_DISTRIBUTION}`"
if [ "${LH_DISTRIBUTION}" != "etch" ]
then

View File

@ -136,7 +136,7 @@ then
ARCHITECTURE="$(echo ${LH_ARCHITECTURE} | sed -e 's# #/#g')"
DISTRIBUTION="$(echo ${LH_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')"
DISTRIBUTION="${DISTRIBUTION}$(echo ${LH_DISTRIBUTION} | cut -b 2-)"
eval VERSION="$$(echo VERSION_${LH_DISTRIBUTION})"
eval VERSION="$`echo VERSION_${LH_DISTRIBUTION}`"
if [ -d binary/pool/main/l/live-installer ]
then

View File

@ -57,7 +57,7 @@ mkdir -p source/.disk
ARCHITECTURE="$(echo ${LH_ARCHITECTURE} | sed -e 's# #/#g')"
DISTRIBUTION="$(echo ${LH_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')"
DISTRIBUTION="${DISTRIBUTION}$(echo ${LH_DISTRIBUTION} | cut -b 2-)"
eval VERSION="$$(echo VERSION_${LH_DISTRIBUTION})"
eval VERSION="$`echo VERSION_${LH_DISTRIBUTION}`"
case "${LH_MODE}" in
debian)