src/HOL/Tools/Predicate_Compile/lib/scripts/swipl_version
author haftmann
Mon, 26 Dec 2011 18:32:43 +0100
changeset 45986 c9e50153e5ae
parent 41952 c7297638599b
permissions -rwxr-xr-x
moved various set operations to theory Set (resp. Product_Type)

#!/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