ports/security/beid/files/patch-scripts_build-aux_genver.sh
Tijl Coosemans b7887f3ffd Update Belgian eID middleware to 4.4.5. Enable the viewer application
and the Firefox extension.  Rename the port from security/libbeid to
security/beid now that it's more than just a library.
2018-08-12 14:02:45 +00:00

16 lines
486 B
Bash

--- scripts/build-aux/genver.sh.orig 2017-10-27 12:42:43 UTC
+++ scripts/build-aux/genver.sh
@@ -1,11 +1,11 @@
#!/bin/sh
-GITDESC=$(git describe --dirty|sed -e 's/-/./g' 2>/dev/null)
+GITDESC=$(git describe --dirty 2>/dev/null | sed -e 's/-/./g')
VERCLEAN=$(echo $GITDESC|sed -Ee 's/^.*v([0-9]+\.[0-9]+(\.[0-9]+|bp)).*$/\1/')
GITDESC="$VERCLEAN-$GITDESC"
-if [ -z "$GITDESC" ]; then
+if [ "$GITDESC" = "-" ]; then
if [ -f ".version" ]; then
GITDESC=$(cat .version)
else