aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/vendors/compile-intel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/vendors/compile-intel.sh')
-rwxr-xr-xlibraries/vendors/compile-intel.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/libraries/vendors/compile-intel.sh b/libraries/vendors/compile-intel.sh
index d9e0721fd..b1810e166 100755
--- a/libraries/vendors/compile-intel.sh
+++ b/libraries/vendors/compile-intel.sh
@@ -3,15 +3,13 @@
# Authors:
# Patrick Lehmann
#
-# Bash Script:
-# Script to compile the simulation libraries from Altera
-# Quartus for GHDL on Linux
+# Bash Script (executable):
+# Script to compile the simulation libraries from Altera Quartus for GHDL on
+# Linux
#
# Description:
-# ------------------------------------
-# This is a Bash script (executable) which:
-# - creates a subdirectory in the current working directory
-# - compiles all Altera Quartus-II simulation libraries and packages
+# - Creates a subdirectory in the current working directory
+# - Compiles all Altera Quartus-II simulation libraries and packages
#
# ==============================================================================
# Copyright (C) 2017-2021 Patrick Lehmann - Boetzingen, Germany
@@ -32,7 +30,7 @@
# ==============================================================================
# Work around for Darwin (Mac OS)
-READLINK=readlink; if [[ $(uname) == "Darwin" ]]; then READLINK=greadlink; fi
+test greadlink --version > /dev/null 2>&1 && READLINK=greadlink || READLINK=readlink
# Save working directory
WorkingDir=$(pwd)