src/HOL/Tools/Predicate_Compile/lib/scripts/swipl_version
author hoelzl
Thu, 26 May 2011 20:51:03 +0200
changeset 42991 3fa22920bf86
parent 41952 c7297638599b
permissions -rwxr-xr-x
integral strong monotone; finite subadditivity for measure

#!/usr/bin/env bash
#
# Author: Lukas Bulwahn, TU Muenchen, 2010
#
# Determine SWI-Prolog version

if [ "$ISABELLE_SWIPL" != "" ]; then
  VERSION="$("$ISABELLE_SWIPL" --version)"
  REGEXP='^SWI-Prolog version ([0-9\.]*) for .*$'
  if [[ "$VERSION" =~ $REGEXP ]]; then
    echo -n "${BASH_REMATCH[1]}"
  else
    echo -n undefined
  fi
fi