0023448: Fix QT samples for Mac OS X
[occt.git] / samples / qt / IESample / custom.sh
old mode 100644 (file)
new mode 100755 (executable)
index 4506c96..7442d22
@@ -1,19 +1,10 @@
 #!/bin/sh
 
-#Define CASROOT and QTDIR variables in order to generate Makefile files by qmake
+#Define CASROOT and QTDIR variables in order to generate Makefile files by qmake.
+#If you are using Mac OS X it is necessary to define WOKHOME as a path to your WOK installation directory.
 
 export CASROOT=""
 
 export QTDIR=""
 
-if test "${CASROOT}" == ""; then
-   echo "Environment variable \"CASROOT\" not defined."
-   exit 1
-fi
-
-if test "${QTDIR}" == ""; then
-   echo "Environment variable \"QTDIR\" not defined."
-   exit 1
-fi
-
-export PATH=${QTDIR}/bin:${PATH}
\ No newline at end of file
+export WOKHOME=""