Changeset 28822


Ignore:
Timestamp:
Sep 9, 2007, 3:48:40 PM (12 years ago)
Author:
afb@…
Message:

portable sed regexp now. looks like snoopy swearing.

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/configure

    r28803 r28822  
    20392039{ echo "$as_me:$LINENO: checking MacPorts version" >&5
    20402040echo $ECHO_N "checking MacPorts version... $ECHO_C" >&6; }
    2041 VER=`cat config/mp_version | tr -d '\n' | sed -E 's/([0-9])\.([0-9])0?([0-9][1-9]?)0?/\1.\2.\3/'`
     2041MP_VERSION=`cat config/mp_version | tr -d '\n'`
     2042VER=`echo $MP_VERSION | sed -e 's/\([0-9]\)\.\([0-9]\)0\{0,1\}\([0-9][1-9]\{0,1\}\)0\{0,1\}/\1.\2.\3/'`
    20422043{ echo "$as_me:$LINENO: result: $VER" >&5
    20432044echo "${ECHO_T}$VER" >&6; }
  • trunk/base/configure.ac

    r28803 r28822  
    1212# translate mp_version (1.600) to regular version (1.6.0)
    1313AC_MSG_CHECKING(MacPorts version)
    14 VER=`cat config/mp_version | tr -d '\n' | sed -E 's/([[0-9]])\.([[0-9]])0?([[0-9]][[1-9]]?)0?/\1.\2.\3/'`
     14MP_VERSION=`cat config/mp_version | tr -d '\n'`
     15VER=`echo $MP_VERSION | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)0\{0,1\}\([[0-9]][[1-9]]\{0,1\}\)0\{0,1\}/\1.\2.\3/'`
    1516AC_MSG_RESULT([$VER])
    1617AC_SUBST(VER)
Note: See TracChangeset for help on using the changeset viewer.