Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
b1fb36c56This file is pinned to the selected release. Download the original to open it in your design tool.
# meant to be included in various QNICE bash scripts
# done by sy2002 in December 2016 and May 2020
case "$OSTYPE" in
solaris*) OSTP="SOLARIX" ;;
darwin*) OSTP="OSX" ;;
linux*) OSTP="LINUX" ;;
bsd*) OSTP="BSD" ;;
*) OSTP="unknown" ;;
esac
if [ $OSTP = "unknown" ]; then
echo ""
echo "error: unsupported OS type:" $OSTYPE
exit
fi
if hash cc 2>/dev/null; then
COMPILER=cc
elif hash gcc 2>/dev/null; then
COMPILER=gcc
else
echo ""
echo "error: neither cc nor gcc has been found!"
exit
fi;
if hash ld 2>/dev/null; then
LINKER=ld
else
echo ""
echo "error: no linker (ld) has been found!"
exit
fi;
if ! hash sed 2>/dev/null; then
echo ""
echo "error: sed is not found!"
exit
fi;