medit/plat/win32/gtk-win/config.sh

67 lines
1.6 KiB
Bash
Raw Normal View History

2012-07-29 06:12:48 +01:00
if [ -z "$OSTYPE" -o "$OSTYPE" != "cygwin" ]; then
export mgwsystem=linux
else
export mgwsystem=cygwin
fi
if [ $mgwsystem = linux ]; then
export mgwlinux=true
export mgwcygwin=false
else
export mgwlinux=false
export mgwcygwin=true
fi
2010-12-14 22:14:38 -08:00
export mgwbuildroot=$HOME/projects/gtk-win-build
2011-04-16 12:31:54 -07:00
export mgwpythondotver=2.7
export mgwpythonver=`echo $mgwpythondotver | sed 's/[.]//'`
2012-07-29 06:12:48 +01:00
if $mgwlinux; then
export mgwpythoninstdir=$HOME/.wine/drive_c/Python$mgwpythonver
if [ -d $HOME/.wine/drive_c/windows/syswow64 ]; then
export mgwpythonsystem32dir=$HOME/.wine/drive_c/windows/syswow64
2012-07-29 20:11:01 -07:00
export mgwprogramfilesdir="$HOME/.wine/drive_c/Program Files (x86)"
else
export mgwpythonsystem32dir=$HOME/.wine/drive_c/windows/system32
2012-07-29 20:11:01 -07:00
export mgwprogramfilesdir="$HOME/.wine/drive_c/Program Files"
fi
2012-07-29 06:12:48 +01:00
else
export mgwpythoninstdir=/cygdrive/c/Tools/Python$mgwpythonver
export mgwpythonsystem32dir=/cygdrive/c/Windows/SysWOW64
fi
2010-12-14 22:14:38 -08:00
2010-04-18 19:20:08 -07:00
export mgwdir_s=$mgwdir
export mgwdir=`cd $mgwdir && pwd`
if [ -z "$mgwconfig" ]; then
export mgwconfig=release
fi
2010-04-18 19:20:08 -07:00
case "$1" in
--debug)
mgwconfig=debug
shift
;;
--release)
mgwconfig=release
shift
;;
--reldbg)
mgwconfig=reldbg
shift
;;
2010-04-18 19:20:08 -07:00
esac
2010-12-08 01:30:44 -08:00
export mgwjhbuildsrcdir=$mgwbuildroot/jhbuild
export mgwjhbuilddir=$mgwbuildroot/jhbuild-bin
2010-10-25 00:05:49 -07:00
export mgwdestdir=$mgwbuildroot/bdist-$mgwconfig
2010-04-18 19:20:08 -07:00
2010-10-25 00:05:49 -07:00
export mgwbuilddir=$mgwbuildroot/$mgwconfig
export mgwbuilddir_s=$mgwbuildroot/$mgwconfig
2010-04-18 19:20:08 -07:00
export mgwsourcedir=$mgwbuilddir/source
export mgwtargetdir=$mgwbuilddir/target
export mgwsourcedir_s=$mgwbuilddir_s/source
export mgwtargetdir_s=$mgwbuilddir_s/target
export mgwdistdir=$mgwbuildroot/dist-$mgwconfig