]> arthur.barton.de Git - ngircd-alex.git/blobdiff - contrib/platformtest.sh
platformtest.sh: Show only up to 10 bytes of version information
[ngircd-alex.git] / contrib / platformtest.sh
index dfefc1aa507d0742bf3c4876cd7c10f826a11b71..f34a8894ef8526a2f49aae1294cc21e213bad028 100755 (executable)
@@ -151,8 +151,8 @@ fi
 # Get ngIRCd version information
 eval $(grep "^VERSION = " Makefile | sed -e 's/ //g')
 case "$VERSION" in
-       *-*-*)
-               VERSION=`echo "$VERSION" | cut -d'-' -f3 | cut -b2-`
+       *~*-*)
+               VERSION=`echo "$VERSION" | cut -b1-10`
                ;;
 esac
 [ -n "$VERSION" ] || VERSION="unknown"