mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
Setting -Werror in CFLAGS passed to configure is not ideal as that affects all the checks performed by the script. This caused an issue with newer versions of Autoconf and the AC_PROG_LEX macro that insisted on finding a lexer library. But due to warnings from the generated test lexer (misleading indentation) that got turned into errors no library was found (none would have been necessary), so LEX was not set and no lexers were built. With this option enabled, we add -Werror to CFLAGS after all tests ran. It also enables additional warnings via -Wextra. The option is auto-enabled when building from the repository.
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 -e $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
|