| ![[BACK]](/icons/cvsweb/back.gif) Return to git-version CVS log ![[TXT]](/icons/cvsweb/text.gif) | ![[DIR]](/icons/cvsweb/dir.gif) Up to  [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / scripts | 
strongswan 5.9.2
#!/bin/sh SRCDIR=$1 TARBALL=$SRCDIR/.tarball-git-version if test -f $TARBALL; then V=$(cat $TARBALL) elif test -d $SRCDIR/.git; then V=$(git -C $SRCDIR describe --tags HEAD 2>/dev/null) fi if test -z "$V"; then V="UNKNOWN" fi echo $V