Ignore:
Timestamp:
Mar 19, 2017, 11:11:28 AM (4 months ago)
Author:
brainslayer
Message:

latest dnsmasq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/dnsmasq/bld/get-version

    r26809 r31703  
    1212# first. This favours, eg v2.63 over 2.63rc6.
    1313
     14# Change directory to the toplevel source directory.
     15if test -z "$1" || ! test -d "$1" || ! cd "$1"; then
     16    echo "$0: First argument $1 must be toplevel dir." >&2
     17    exit 1
     18fi
     19
    1420if which git >/dev/null 2>&1 && \
    15     ([ -d $1/.git ] || grep '^gitdir:' $1/.git >/dev/null 2>&1); then
    16     cd $1; git describe | sed 's/^v//'
     21    ([ -d .git ] || grep '^gitdir:' .git >/dev/null 2>&1) && \
     22    git describe >/dev/null 2>&1; then
     23    git describe | sed 's/^v//'
    1724elif grep '\$Format:%d\$' $1/VERSION >/dev/null 2>&1; then
    18 # unsubstituted VERSION, but no git available.
     25    # unsubstituted VERSION, but no git available.
    1926    echo UNKNOWN
    2027else
Note: See TracChangeset for help on using the changeset viewer.