Ignore:
Timestamp:
Dec 5, 2010, 7:04:48 PM (11 years ago)
Author:
charles
Message:

(2.0x miniupnp) backport r11381 for #3707 "Remove dependancy to which."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/third-party/miniupnp/updateminiupnpcstrings.sh

    r10046 r11484  
    1313fi
    1414# use lsb_release (Linux Standard Base) when available
    15 LSB_RELEASE=`which lsb_release`
    16 if [ 0 -eq $? -a -x "${LSB_RELEASE}" ]; then
    17         OS_NAME=`${LSB_RELEASE} -i -s`
    18         OS_VERSION=`${LSB_RELEASE} -r -s`
    19         case $OS_NAME in
    20                 Debian)
    21                         #OS_VERSION=`${LSB_RELEASE} -c -s`
    22                         ;;
    23                 Ubuntu)
    24                         #OS_VERSION=`${LSB_RELEASE} -c -s`
    25                         ;;
    26         esac
     15if os_name=`lsb_release -i -s 2>/dev/null`; then
     16    OS_NAME=$os_name
     17    OS_VERSION=`lsb_release -r -s`
    2718fi
    2819
Note: See TracChangeset for help on using the changeset viewer.