4 CURRENTWORKINGDIR
=$
(pwd)
8 TARGETNAME
=${APPLICATIONNAME}
10 PRAATSOURCES
=.
/praat_sources
11 if [[ ${1:-Normal} == "MinGW" ]]; then
12 PRAATSOURCES
=..
/..
/praat_mingw
13 if [[ ! -d ${PRAATSOURCES} ]]; then
16 elif [[ -d ..
/praat_sources
]]; then
17 PRAATSOURCES
=..
/praat_sources
18 elif [[ -d ..
/..
/demo_praat_sources
]]; then
19 PRAATSOURCES
=..
/..
/demo_praat_sources
20 elif [[ -d ..
/..
/praat_sources
]]; then
21 PRAATSOURCES
=..
/..
/praat_sources
24 if [[ -e ${PRAATSOURCES}/makefile.defs
&& -n `grep -l mingw32 ${PRAATSOURCES}/makefile.defs` ]]; then
26 if [[ ${1:-Normal} == "MinGW" && ${2:-Normal} == "XP" ]]; then
27 TARGETNAME
=${APPLICATIONNAME}XP.exe
29 TARGETNAME
=${APPLICATIONNAME}.exe
32 elif [[ ${UNAME} == "Darwin" ]]; then
33 SDK
=`ls -1d /Developer/SDKs/*|tail -1`
34 MAKECMD
="xcodebuild -project praat32.xcodeproj"
35 if [[ -n ${SDK} ]]; then
36 MAKECMD
="xcodebuild -project praat32.xcodeproj -sdk ${SDK}"
38 EXECPATH
="./build/Configuration1/Praat.app"
39 TARGETNAME
=${APPLICATIONNAME}.app
47 if [[ -s ${CURRENTWORKINGDIR}/adaptPraat.
patch ]]; then
48 patch --strip=1 < ${CURRENTWORKINGDIR}/adaptPraat.
patch
49 patch --strip=1 < ${CURRENTWORKINGDIR}/sys_praat_name.
patch
52 # Add demopraatapplication.h
58 if [[ -s ${CURRENTWORKINGDIR}/main_Praat.
patch ]]; then
59 patch main_Praat.cpp
${CURRENTWORKINGDIR}/main_Praat.
patch
63 if [[ ${UNAME} == "Darwin" ]]; then
64 ${MAKECMD} OTHER_CFLAGS
='$OTHER_CFLAGS -DDEMOAPP' 2>&1
70 if [[ -s ${CURRENTWORKINGDIR}/adaptPraat.
patch ]]; then
71 patch -R --strip=1 < ${CURRENTWORKINGDIR}/adaptPraat.
patch
72 patch -R --strip=1 < ${CURRENTWORKINGDIR}/sys_praat_name.
patch
76 if [[ -s ${CURRENTWORKINGDIR}/main_Praat.
patch ]]; then
77 patch -R main_Praat.cpp
${CURRENTWORKINGDIR}/main_Praat.
patch