From 9318911322bdf908797d4f5ba14d5f04273b6fea Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 11 Aug 2008 17:44:49 +0000 Subject: [PATCH] 2008-08-11 19:40 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * make_xmingw.sh ! Fixed to look for hbpp in the path, like it does for harbour. --- harbour/make_xmingw.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/harbour/make_xmingw.sh b/harbour/make_xmingw.sh index 444eaf7bb0..9a7bdb9df7 100755 --- a/harbour/make_xmingw.sh +++ b/harbour/make_xmingw.sh @@ -107,11 +107,23 @@ fi if [ -x "${HB_COMP_PATH}" ]; then ln -s "${HB_COMP_PATH}" ${HB_BIN_COMPILE}/harbour.exe else - echo "You must have a working Harbour executable for your platform on your PATH." + echo "You must have a working 'harbour' executable for your platform on your PATH." + exit 1 +fi + +if which hbpp > /dev/null 2>&1; then + HB_COMP_PATH=`which hbpp 2> /dev/null` +else + HB_COMP_PATH="$DIR/source/pp/$UNAMEL/gcc/hbpp" +fi + +if [ -x "${HB_COMP_PATH}" ]; then + ln -s "${HB_COMP_PATH}" ${HB_BIN_COMPILE}/hbpp.exe +else + echo "You must have a working 'hbpp' executable for your platform on your PATH." exit 1 fi -ln -s "$DIR/source/pp/$UNAMEL/gcc/hbpp" ${HB_BIN_COMPILE}/hbpp.exe export HB_PPGEN_PATH=${HB_BIN_COMPILE} case "$1" in