configure: fix version string breakage
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Nov 14 18:12:55 2011 +0100 (2011-11-14)
changeset 27497f305778ab05
parent 2745 3cd375ecdd72
child 2750 c6d10ee4ab25
configure: fix version string breakage

As we use the directory names as Makefile targets, they can not contain any
column ':', or else make will complain about 'multiple target patterns'.

Replace the offending ':' with a dash '-', as Titus suggested.

Reported-by: Erdem Budak <erdembudak@hotmail.com>
Reported-by: Titus von Boxberg <titus@v9g.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
configure
     1.1 --- a/configure	Sun Nov 13 18:24:36 2011 +0100
     1.2 +++ b/configure	Mon Nov 14 18:12:55 2011 +0100
     1.3 @@ -550,11 +550,11 @@
     1.4  else
     1.5      case "${VERSION}" in
     1.6          *+hg|hg)
     1.7 -            rev_id="$( hg log -r . --template '{branch}:{node|short}\n' \
     1.8 +            rev_id="$( hg log -r . --template '{branch}-{node|short}\n' \
     1.9                                2>/dev/null                               \
    1.10                         || true                                          \
    1.11                       )"
    1.12 -            VERSION="${VERSION}@${rev_id:-unknown:$( date +%Y%m%d.%H%M%S )}"
    1.13 +            VERSION="${VERSION}@${rev_id:-unknown-$( date +%Y%m%d.%H%M%S )}"
    1.14              ;;
    1.15      esac
    1.16  fi