File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / scripts / git-version
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:20:15 2021 UTC (3 years, 5 months ago) by misho
Branches: strongswan, MAIN
CVS tags: v5_9_2p0, HEAD
strongswan 5.9.2

    1: #!/bin/sh
    2: 
    3: SRCDIR=$1
    4: TARBALL=$SRCDIR/.tarball-git-version
    5: 
    6: if test -f $TARBALL; then
    7: 	V=$(cat $TARBALL)
    8: elif test -d $SRCDIR/.git; then
    9: 	V=$(git -C $SRCDIR describe --tags HEAD 2>/dev/null)
   10: fi
   11: 
   12: if test -z "$V"; then
   13: 	V="UNKNOWN"
   14: fi
   15: 
   16: echo $V

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>