Skip to content
Snippets Groups Projects
Commit 41550906 authored by Dumez's avatar Dumez
Browse files

Check if locale en_US (en_US.iso88591) is present. If not, it will throw...

Check if locale en_US (en_US.iso88591) is present.  If not, it will throw error with /home/software/Altera/11.1sp2/quartus/adm/qenv.sh
parent d2bd51ab
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,16 @@ if [ "${SITE-}" = "USN" ]; then ...@@ -41,6 +41,16 @@ if [ "${SITE-}" = "USN" ]; then
export LC_MESSAGES=C export LC_MESSAGES=C
if [ "${TOOLSET}" = "unb1" ]; then if [ "${TOOLSET}" = "unb1" ]; then
# check if locale en_US (en_US.iso88591 is present. If not, it will throw error like:
# Warning: sopc_unb1_minimal.: /home/software/Altera/11.1sp2/quartus/adm/qenv.sh: line 87: setlocale: LC_CTYPE: cannot change locale (en_US): No such file or directory
locale -a | grep -q "en_US.iso88591"
if [ $? -ne 0 ] ; then
echo "Missing locale en_US.iso88591 required by some Quartus scripts"
echo "Install with:"
echo "> sudo locale-gen en_US"
exit 1
fi
. ${RADIOHDL}/tools/quartus/quartus_version.sh 11.1sp2 . ${RADIOHDL}/tools/quartus/quartus_version.sh 11.1sp2
elif [ "${TOOLSET}" = "unb2" ]; then elif [ "${TOOLSET}" = "unb2" ]; then
. ${RADIOHDL}/tools/quartus/quartus_version.sh 14.1 . ${RADIOHDL}/tools/quartus/quartus_version.sh 14.1
...@@ -50,6 +60,7 @@ if [ "${SITE-}" = "USN" ]; then ...@@ -50,6 +60,7 @@ if [ "${SITE-}" = "USN" ]; then
fi fi
# chech that ipx file is correctly setup # chech that ipx file is correctly setup
${RADIOHDL}/tools/quartus/check_ipx_content ${RADIOHDL}/tools/quartus/check_ipx_content
else # default site else # default site
if [ "${TOOLSET}" = "unb1" ]; then if [ "${TOOLSET}" = "unb1" ]; then
. ${RADIOHDL}/tools/quartus/quartus_version.sh 11.1 . ${RADIOHDL}/tools/quartus/quartus_version.sh 11.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment