projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Macros for simplified testing Open Watcom version and required tweaks.
[wxWidgets.git]
/
wxPython
/
distrib
/
build_packages.sh
diff --git
a/wxPython/distrib/build_packages.sh
b/wxPython/distrib/build_packages.sh
index 1d02ef607938843a8c9709f0d8d87fb77ef6c14b..38b5f0eb6404bc24aa7a3d6be3ee48d1fb0bc434 100755
(executable)
--- a/
wxPython/distrib/build_packages.sh
+++ b/
wxPython/distrib/build_packages.sh
@@
-3,6
+3,16
@@
PY_VERSION=$1
shift
PY_VERSION=$1
shift
+unicode=no
+debug=no
+
+for flag in $*; do
+ case ${flag} in
+ debug) debug=yes ;;
+ unicode) unicode=yes ;;
+ esac
+done
+
if [ "$WXWIN" = "" ]; then
export WXWIN=`pwd`/../..
fi
if [ "$WXWIN" = "" ]; then
export WXWIN=`pwd`/../..
fi
@@
-19,20
+29,29
@@
if [ "$OSTYPE" = "cygwin" ]; then
export SWIGDIR=$TOOLS/SWIG-1.3.24
fi
export SWIGDIR=$TOOLS/SWIG-1.3.24
fi
+ DEBUG_FLAG=
+ UNICODE_FLAG=
+ if [ $debug = yes ]; then
+ DEBUG_FLAG=--debug
+ fi
+ if [ $unicode = yes ]; then
+ UNICODE_FLAG="UNICODE=1"
+ fi
+
# copy wxPython build scripts
cp $WXWIN/wxPython/distrib/msw/.m* $WXWIN/build/msw
# setup wxPython defines
cp $WXWIN/include/wx/msw/setup0.h $WXWIN/include/wx/msw/setup.h
# copy wxPython build scripts
cp $WXWIN/wxPython/distrib/msw/.m* $WXWIN/build/msw
# setup wxPython defines
cp $WXWIN/include/wx/msw/setup0.h $WXWIN/include/wx/msw/setup.h
- $TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/create_setup.h.py` $
@
+ $TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/create_setup.h.py` $
UNICODE_FLAG
- export PATH=${PATH}:${WXWIN}/lib/vc_dll
+ export PATH=${PATH}:${WXWIN}/lib/vc_dll
:${TOOLS}/Python${PY_VERSION}
cd $WXWIN/build/msw
# remove old build files
rm -rf vc_msw*
UNI=
cd $WXWIN/build/msw
# remove old build files
rm -rf vc_msw*
UNI=
- if [
"$UNICODE" != ""
]; then
+ if [
$unicode = yes
]; then
UNI=-uni
fi
./.make hybrid$UNI
UNI=-uni
fi
./.make hybrid$UNI
@@
-44,44
+63,33
@@
if [ "$OSTYPE" = "cygwin" ]; then
cd $WXWIN/locale
make allmo
cd $WXWIN/locale
make allmo
- # TODO: Make the documentation
- cd $WXWIN/wxPython
- #distrib/makedocs
+ $TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/makemo.py`
- $TOOLS/Python$PY_VERSION/python `cygpath -d distrib/makemo.py`
+ cd $WXWIN/wxPython
rm -rf build build.unicode
rm -rf wx/*.pyd
# re-generate SWIG files
rm -rf build build.unicode
rm -rf wx/*.pyd
# re-generate SWIG files
- b $PY_VERSION t
+
$WXWIN/wxPython/
b $PY_VERSION t
# build the hybrid extension
# NOTE: Win Python needs Windows-style pathnames, so we
# need to convert
# build the hybrid extension
# NOTE: Win Python needs Windows-style pathnames, so we
# need to convert
- export WXWIN=`cygpath -
d
$WXWIN`
- export SWIGDIR=`cygpath -
d
$SWIGDIR`
+ export WXWIN=`cygpath -
w
$WXWIN`
+ export SWIGDIR=`cygpath -
w
$SWIGDIR`
- DEBUG_FLAG=
- UNICODE_FLAG=
- if [ "$DEBUG" != "" ]; then
- DEBUG_FLAG=--debug
- fi
- if [ "$UNICODE" != "" ]; then
- UNICODE_FLAG="UNICODE=1"
- fi
- b $PY_VERSION h $DEBUG_FLAG $UNICODE_FLAG
+ $WXWIN/wxPython/b $PY_VERSION h $DEBUG_FLAG $UNICODE_FLAG
# make the dev package
# make the dev package
-
#
distrib/makedev
+
$WXWIN/wxPython/
distrib/makedev
- $TOOLS/Python$PY_VERSION/python distrib/make_installer_inno4.py $UNICODE_FLAG
- exit
+ $TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/make_installer_inno4.py` $UNICODE_FLAG
elif [ "$OSTYPE" = "darwin" ]; then
cd $WXWIN/wxPython
# re-generate SWIG files
elif [ "$OSTYPE" = "darwin" ]; then
cd $WXWIN/wxPython
# re-generate SWIG files
-
.
/b $PY_VERSION t
+
$WXWIN/wxPython
/b $PY_VERSION t
PY_DOT_VER=2.3
if [ "$PY_VERSION" = "24" ]; then
PY_DOT_VER=2.3
if [ "$PY_VERSION" = "24" ]; then
@@
-89,12
+97,17
@@
elif [ "$OSTYPE" = "darwin" ]; then
fi
UNICODE_OPT=
fi
UNICODE_OPT=
- if [
"$UNICODE" = "1"
]; then
+ if [
$unicode = yes
]; then
UNICODE_OPT=unicode
fi
sudo distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT
UNICODE_OPT=unicode
fi
sudo distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT
- exit
else
echo "OSTYPE $OSTYPE not yet supported by this build script."
fi
else
echo "OSTYPE $OSTYPE not yet supported by this build script."
fi
+
+# Now make the demo and docs tarballs
+cd $WXWIN/wxPython
+$WXWIN/wxPython/distrib/makedocs
+$WXWIN/wxPython/distrib/makedemo
+