From 4de2ab7dfb64dee48b97aca16a7f8fae86d2cf8a Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 2 Jan 2015 11:15:13 +0000 Subject: [PATCH] libclean: honour an environment variable for the SDCC libs --- Library/tools/libclean | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Library/tools/libclean b/Library/tools/libclean index f7d99dfd..e19842b5 100755 --- a/Library/tools/libclean +++ b/Library/tools/libclean @@ -6,10 +6,12 @@ # UNAME_S=`uname -s` -if [ "${UNAME_S}" = "Darwin" ]; then - SDCC_LIB="/usr/local/share/sdcc/lib" -else - SDCC_LIB="/usr/share/sdcc/lib" +if [ x"$SDCC_LIB" = "x" ]; then + if [ "${UNAME_S}" = "Darwin" ]; then + SDCC_LIB="/usr/local/share/sdcc/lib" + else + SDCC_LIB="/usr/share/sdcc/lib" + fi fi cp ${SDCC_LIB}/z80/z80.lib tmp.lib -- 2.34.1