Ignore:
Timestamp:
Nov 2, 2010, 1:37:34 PM (11 years ago)
Author:
charles
Message:

(trunk third-party) #3707 "remove dependency to which" -- committed. fix by geirha.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/miniupnp/updateminiupnpcstrings.sh

    r10046 r11381  
    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.