Files
wxWidgets/distrib/scripts/unix/unixbuild
Kevin Ollivier 0ebe472f38 Update to work with the latest wxPython and to work with more shells. Also, get the script's directory
using $0 rather than relying on it to be run from the dir it lives in.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-11 21:06:09 +00:00

53 lines
934 B
Bash
Executable File

#!/bin/sh
if [ "$WXROOT" = "" ]; then
scriptDir="$(cd $(dirname $0);pwd)"
WXROOT=$scriptDir/../../..
fi
. $WXROOT/distrib/scripts/includes/configure_build.inc
WXPYTHON=0
UNICODE=0
DEBUG=0
STATIC=0
PORT=""
# Process command line options.
for i in "$@"; do
case "$i" in
unicode) UNICODE=1 ;;
ansi) UNICODE=0 ;;
debug) DEBUG=1 ;;
wxpython) WXPYTHON=1 ;;
gtk2) PORT="gtk2" ;;
gtk) PORT="gtk" ;;
x11) PORT="x11" ;;
motif) PORT="motif" ;;
static) STATIC=1 ;;
*)
usage
exit
;;
esac
done
if [ "$PORT" != "" ]; then
OTHER_OPTS="--with-$PORT "
fi
do_build
if [ $? != 0 ]; then
exit $?
fi
make prefix=$INSTALLDIR install
if [ "$WXPYTHON" = "1" ]; then
make -C contrib/src/gizmos prefix=$INSTALLDIR install
make -C contrib/src/stc prefix=$INSTALLDIR install
fi
cd $OLDDIR