export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -e "custom.sh" ]; then
- source "custom.sh";
+ source "custom.sh" $*;
fi
if [ -e "${aSamplePath}/../../../env.sh" ]; then
- source "${aSamplePath}/../../../env.sh";
+ source "${aSamplePath}/../../../env.sh" $*;
fi
-if test "${QTDIR}" == ""; then
- echo "Environment variable \"QTDIR\" not defined. Define it in \"custom.sh\" script."
- exit 1
+if [ "${QTDIR}" != "" ]; then
+ export PATH=${QTDIR}/bin:${PATH}
+else
+ aQMakePath=`which qmake`
+ echo "Environment variable \"QTDIR\" not defined.. Define it in \"custom.sh\" script."
+ if [ -x "$aQMakePath" ]; then
+ echo "qmake from PATH will be used instead."
+ else
+ exit 1
+ fi
fi
host=`uname -s`
export STATION=$host
-
-export PATH=${QTDIR}/bin:${PATH}
#!/bin/bash
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
+if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
cd $aSamplePath
qmake FuncDemo.pro
if [ "$(uname -s)" != "Darwin" ] || [ "$MACOSX_USE_GLX" == "true" ]; then
+ aNbJobs="$(getconf _NPROCESSORS_ONLN)"
if [ "${CASDEB}" == "d" ]; then
- make debug
+ make -j $aNbJobs debug
else
- make release
+ make -j $aNbJobs release
fi
fi
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
+if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
cd $aSamplePath
aSystem=`uname -s`
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -e "custom.sh" ]; then
- source "custom.sh";
+ source "custom.sh" $*;
fi
if [ -e "${aSamplePath}/../../../env.sh" ]; then
- source "${aSamplePath}/../../../env.sh";
+ source "${aSamplePath}/../../../env.sh" $*;
fi
-if test "${QTDIR}" == ""; then
- echo "Environment variable \"QTDIR\" not defined. Define it in \"custom.sh\" script."
- exit 1
+if [ "${QTDIR}" != "" ]; then
+ export PATH=${QTDIR}/bin:${PATH}
+else
+ aQMakePath=`which qmake`
+ echo "Environment variable \"QTDIR\" not defined.. Define it in \"custom.sh\" script."
+ if [ -x "$aQMakePath" ]; then
+ echo "qmake from PATH will be used instead."
+ else
+ exit 1
+ fi
fi
host=`uname -s`
export STATION=$host
export RES_DIR=${aSamplePath}/${STATION}/res
-
-export PATH=${QTDIR}/bin:${PATH}
#!/bin/bash
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
+if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
cd $aSamplePath
qmake IESample.pro
if [ "$(uname -s)" != "Darwin" ] || [ "$MACOSX_USE_GLX" == "true" ]; then
+ aNbJobs="$(getconf _NPROCESSORS_ONLN)"
if [ "${CASDEB}" == "d" ]; then
- make debug
+ make -j $aNbJobs debug
else
- make release
+ make -j $aNbJobs release
fi
fi
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
+if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
cd $aSamplePath
aSystem=`uname -s`
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -e "custom.sh" ]; then
- source "custom.sh";
+ source "custom.sh" $*;
fi
if [ -e "${aSamplePath}/../../../env.sh" ]; then
- source "${aSamplePath}/../../../env.sh";
+ source "${aSamplePath}/../../../env.sh" $*;
fi
-if test "${QTDIR}" == ""; then
- echo "Environment variable \"QTDIR\" not defined. Define it in \"custom.sh\" script."
- exit 1
+if [ "${QTDIR}" != "" ]; then
+ export PATH=${QTDIR}/bin:${PATH}
+else
+ aQMakePath=`which qmake`
+ echo "Environment variable \"QTDIR\" not defined.. Define it in \"custom.sh\" script."
+ if [ -x "$aQMakePath" ]; then
+ echo "qmake from PATH will be used instead."
+ else
+ exit 1
+ fi
fi
host=`uname -s`
export STATION=$host
export RES_DIR=${aSamplePath}/${STATION}/res
-
-export PATH=${QTDIR}/bin:${PATH}
#!/bin/bash
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
+if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
cd $aSamplePath
qmake Tutorial.pro
if [ "$(uname -s)" != "Darwin" ] || [ "$MACOSX_USE_GLX" == "true" ]; then
+ aNbJobs="$(getconf _NPROCESSORS_ONLN)"
if [ "${CASDEB}" == "d" ]; then
- make debug
+ make -j $aNbJobs debug
else
- make release
+ make -j $aNbJobs release
fi
fi
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
+if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
cd $aSamplePath
aSystem=`uname -s`