mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
17 lines
263 B
Bash
Executable File
17 lines
263 B
Bash
Executable File
#!/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 --exclude 'android-*' --tags HEAD 2>/dev/null)
|
|
fi
|
|
|
|
if test -z "$V"; then
|
|
V="UNKNOWN"
|
|
fi
|
|
|
|
echo $V
|