#!/bin/bash
DarwinVer=`uname -r`

# EAGLE requires at least OSX 10.6. Unfortunately on this damned MAC there's no command to determine the OS version safely :-(
# From Wikipedia we know that this is Darwin version >= 10.0. This is s.th. we can access.
# Regular expressions in bash. Pretty strange...

if [[ $DarwinVer =~ (.*)\.(.*)\. ]]; then
   if [[ ${BASH_REMATCH[1]} -lt 10 ]]; then
      exit 112
   fi
fi
exit 0
