Changeset 3155


Ignore:
Timestamp:
Apr 22, 2007, 2:01:46 AM (18 years ago)
Author:
bird
Message:

quick port to ash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-devel/automake-wrapper/am-wrapper-3.sh

    r3154 r3155  
    1 #!/bin/bash
     1#!sh.exe
    22# Copyright 1999-2006 Gentoo Foundation
    33# Distributed under the terms of the GNU General Public License v2
     
    5555
    5656#
    57 # Export the proper variable/versions and try to locate a usuable
     57# Export the proper variable/versions and try to locate a usable
    5858# default (newer versions are preferred)
    5959#
    6060binary=""
    6161for v in ${vers} ; do
    62         eval binary_${v/./_}="${0}-${v}"
     62        _v=`echo ${v} | sed -e 's/\./_/'`
     63        eval binary_${v_}="${0}-${v}"
    6364
    6465        if [ -z "${binary}" ] && [ -x "${0}-${v}" ] ; then
     
    8788                for wx in ${WANT_AUTOMAKE} ; do
    8889                        if [ "${wx}" = "${v}" ] ; then
    89                                 binary="binary_${v/./_}"
    90                                 binary="${!binary}"
     90                                _v=`echo ${v} | sed -e 's/\./_/'`
     91                                binary="binary_${_v}"
     92                                #binary="${!binary}"
     93                                eval binary=$`echo "${binary}"`
    9194                                v="x"
    9295                        fi
     
    121124                   || [ "${confversion_ac}" = "${v}" ] \
    122125                   || [ "${confversion_am}" = "${v}" ] ; then
    123                         binary="binary_${v/./_}"
    124                         binary="${!binary}"
     126                        _v=`echo ${v} | sed -e 's/\./_/'`
     127                        binary="binary_${v_}"
     128                        #binary="${!binary}"
     129                        eval binary=$`echo "${binary}"`
    125130                        break
    126131                fi
     
    139144#
    140145for v in ${vers} ; do
    141         mybin="binary_${v/./_}"
    142         if [ "${binary}" = "${!mybin}" ] ; then
     146        _v=`echo ${v} | sed -e 's/\./_/'`
     147        mybin="binary_${v_}"
     148        #if [ "${binary}" = "${!mybin}" ] ; then
     149        eval mybin=$`echo "${mybin}"`
     150        if [ "${binary}" = "${mybin}" ] ; then
    143151                export WANT_AUTOMAKE="${v}"
    144152        fi
Note: See TracChangeset for help on using the changeset viewer.