From 236499deebd7249cf097207f8704b0ebc14aceb3 Mon Sep 17 00:00:00 2001 From: Luca Foppiano Date: Wed, 25 Dec 2024 20:47:35 +0100 Subject: [PATCH] minor changes --- install_deps.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/install_deps.sh b/install_deps.sh index 5bd9697..51f1188 100755 --- a/install_deps.sh +++ b/install_deps.sh @@ -143,22 +143,20 @@ echo 'zlib and png installation is finished.' echo 'Copying libraries into their corresponding location.' MACHINE_TYPE=$(uname -m) -if [ "${MACHINE_TYPE}" == 'x86_64' ]; then +if [[ "${MACHINE_TYPE}" == 'x86_64' ]]; then ARCH="64" -elif [ "${MACHINE_TYPE}" == 'arm64' ]; then +elif [[ "${MACHINE_TYPE}" == 'arm64' ]]; then ARCH="arm64" else ARCH="32" fi + echo "$(uname -m)" echo "${ARCH}" -echo "Go for the second " + ls -lha "libs/image/zlib/${LIB_INSTALL}/${ARCH}/" ls -lha "libs/image/png/${LIB_INSTALL}/${ARCH}/" - -ls -l "libs/image/zlib/${LIB_INSTALL}/${ARCH}/" - cp "libs/image/zlib/src/libzlib.a" "libs/image/zlib/${LIB_INSTALL}/$ARCH/" cp "libs/image/png/src/libpng.a" "libs/image/png/${LIB_INSTALL}/$ARCH/" cp "${DEP_INSTALL_DIR}/freetype-2.9/_build/libfreetype.a" "libs/freetype/${LIB_INSTALL}/${ARCH}/" @@ -192,7 +190,7 @@ languages=( for language in "${languages[@]}" ; do #language_dir="${language}" language_url="https://dl.xpdfreader.com/xpdf-${language}.tar.gz" - wget -qO- "${language_url}" | tar xvfz - + wget -qO- "${language_url}" | tar xvfz - done cp xpdfrc ..