Remove bashisms from scripts/build-w64.sh

pull/281/head
Nate Bargmann 2020-06-02 08:47:41 -05:00
rodzic 27a84ac273
commit 2ee6306856
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F72625E2EDBED598
1 zmienionych plików z 14 dodań i 4 usunięć

Wyświetl plik

@ -30,17 +30,27 @@ EX_NOINPUT=66
# Pass name of Hamlib archive extracted in $BUILD_DIR
if [ $# -ne 1 ]; then
echo -e "\nUsage: $(basename $0) hamlib-version\n"
echo -e "See README.build-Windows for more information.\n"
echo
echo "Usage: $(basename $0) hamlib-version"
echo "See README.build-Windows for more information."
echo
exit ${EX_USAGE}
fi
# Make sure the Hamlib archive is where we expect
if [ -d ${BUILD_DIR}/$1 ]; then
echo -e "\nBuilding W64 binaries in ${BUILD_DIR}/$1\n\n"
echo
echo "Building W64 binaries in ${BUILD_DIR}/$1"
echo
cd ${BUILD_DIR}/$1
else
echo -e "\nBuild directory, ${BUILD_DIR}/$1 not found!\nCheck path for $1 or correct the version number.\n"
echo
echo "Build directory, ${BUILD_DIR}/$1 not found!"
echo "Check path for $1 or correct the version number."
echo
exit ${EX_NOINPUT}
fi