enable building just the unicode version, or both unicode and ansi
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,9 +120,10 @@ def usage():
|
|||||||
print " skipdocs Don't rebuild the docs"
|
print " skipdocs Don't rebuild the docs"
|
||||||
print " skipwin Don't do the remote Windows build"
|
print " skipwin Don't do the remote Windows build"
|
||||||
print " skiposx Don't do the remote OSX build"
|
print " skiposx Don't do the remote OSX build"
|
||||||
print " skiplinux Don't do the remote Linux build"
|
print " skiplinux Don't do the remote Linux (RPM) build"
|
||||||
print " skipclean Don't do the cleanup step on the remote builds"
|
print " skipclean Don't do the cleanup step on the remote builds"
|
||||||
print " skipupload Don't upload the builds to starship"
|
print " skipupload Don't upload the builds to starship"
|
||||||
|
print " ansi Also do the ansi builds"
|
||||||
print ""
|
print ""
|
||||||
print " nocohost Don't start the coLinux sessions if they are"
|
print " nocohost Don't start the coLinux sessions if they are"
|
||||||
print " not already online"
|
print " not already online"
|
||||||
@@ -173,6 +174,9 @@ def main(args):
|
|||||||
elif flag == "skipupload":
|
elif flag == "skipupload":
|
||||||
config.skipupload = "yes"
|
config.skipupload = "yes"
|
||||||
|
|
||||||
|
elif flag == "ansi":
|
||||||
|
config.buildansi = "yes"
|
||||||
|
|
||||||
elif flag == "nocohost":
|
elif flag == "nocohost":
|
||||||
config.startcohost = "no"
|
config.startcohost = "no"
|
||||||
|
|
||||||
|
@@ -39,4 +39,4 @@ skipclean = no
|
|||||||
skipupload = no
|
skipupload = no
|
||||||
skipnewdocs = no
|
skipnewdocs = no
|
||||||
startcohost = yes
|
startcohost = yes
|
||||||
|
buildansi = no
|
||||||
|
@@ -12,12 +12,21 @@ flags=$4
|
|||||||
if [ $skiposx != yes ]; then
|
if [ $skiposx != yes ]; then
|
||||||
# test if the target machine is online
|
# test if the target machine is online
|
||||||
if ping -q -c1 -w1 $host > /dev/null; then
|
if ping -q -c1 -w1 $host > /dev/null; then
|
||||||
echo " The $host machine is online, OSX build continuing..."
|
echo "The $host machine is online, OSX build continuing..."
|
||||||
else
|
else
|
||||||
echo "The $host machine is **OFFLINE**, skipping the OSX build."
|
echo "The $host machine is **OFFLINE**, skipping the OSX build."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $chartype == ansi -a $buildansi == no ]; then
|
||||||
|
echo "Skipping ansi-only build host"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $chartype == both -a $buildansi == no ]; then
|
||||||
|
chartype=unicode
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Copying source files and build script..."
|
echo "Copying source files and build script..."
|
||||||
ssh root@$host "mkdir -p $OSX_BUILD && rm -rf $OSX_BUILD/* || true"
|
ssh root@$host "mkdir -p $OSX_BUILD && rm -rf $OSX_BUILD/* || true"
|
||||||
|
|
||||||
|
@@ -7,11 +7,12 @@ set -o errexit
|
|||||||
coHost=$1
|
coHost=$1
|
||||||
host=$2
|
host=$2
|
||||||
reltag=$3
|
reltag=$3
|
||||||
shift;shift;shift
|
pyver=$4
|
||||||
pyver=$@
|
|
||||||
|
|
||||||
if [ $pyver = config ]; then
|
if [ $buildansi = yes ]; then
|
||||||
pyver=$PYVER
|
CHARTYPE=both
|
||||||
|
else
|
||||||
|
CHARTYPE=unicode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ if [ $skiplinux != yes ]; then
|
|||||||
|
|
||||||
echo "Running build script on $host..."
|
echo "Running build script on $host..."
|
||||||
cmd=./do-build-rpm
|
cmd=./do-build-rpm
|
||||||
ssh root@$host "cd $LINUX_BUILD && $cmd $reltag $skipclean $VERSION $pyver"
|
ssh root@$host "cd $LINUX_BUILD && $cmd $reltag $skipclean $VERSION $pyver $CHARTYPE"
|
||||||
|
|
||||||
echo "Fetching the results..."
|
echo "Fetching the results..."
|
||||||
scp "root@$host:$LINUX_BUILD/wxPython*.i[0-9]86.rpm" $STAGING_DIR
|
scp "root@$host:$LINUX_BUILD/wxPython*.i[0-9]86.rpm" $STAGING_DIR
|
||||||
|
@@ -6,6 +6,13 @@ set -o errexit
|
|||||||
|
|
||||||
PYVER=$1
|
PYVER=$1
|
||||||
|
|
||||||
|
if [ $buildansi = yes ]; then
|
||||||
|
CHARTYPE=both
|
||||||
|
else
|
||||||
|
CHARTYPE=unicode
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ $skipwin != yes ]; then
|
if [ $skipwin != yes ]; then
|
||||||
# test if the target machine is online
|
# test if the target machine is online
|
||||||
if ping -q -c1 -w1 $WIN_HOST > /dev/null; then
|
if ping -q -c1 -w1 $WIN_HOST > /dev/null; then
|
||||||
@@ -15,15 +22,16 @@ if [ $skipwin != yes ]; then
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Copying source file and build script..."
|
echo "Copying source, docs and build script..."
|
||||||
scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
|
scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
|
||||||
|
$STAGING_DIR/wxPython-docs-$VERSION.tar.bz2 \
|
||||||
distrib/all/do-build-windows \
|
distrib/all/do-build-windows \
|
||||||
$WIN_HOST:$WIN_BUILD
|
$WIN_HOST:$WIN_BUILD
|
||||||
|
|
||||||
echo "Running build script on $WIN_HOST..."
|
echo "Running build script on $WIN_HOST..."
|
||||||
wxdir=$WIN_BUILD/wxPython-src-$VERSION
|
wxdir=$WIN_BUILD/wxPython-src-$VERSION
|
||||||
cmd=./do-build-windows
|
cmd=./do-build-windows
|
||||||
ssh $WIN_HOST "cd $WIN_BUILD && $cmd $wxdir $WIN_BUILD $skipclean $VERSION $PYVER && rm $cmd"
|
ssh $WIN_HOST "cd $WIN_BUILD && $cmd $wxdir $WIN_BUILD $skipclean $VERSION $PYVER $CHARTYPE && rm $cmd"
|
||||||
|
|
||||||
echo "Fetching the results..."
|
echo "Fetching the results..."
|
||||||
scp "$WIN_HOST:$WIN_BUILD/wxPython*-win32*" $STAGING_DIR
|
scp "$WIN_HOST:$WIN_BUILD/wxPython*-win32*" $STAGING_DIR
|
||||||
|
@@ -52,8 +52,8 @@ cd $WXDIR/wxPython
|
|||||||
export TARBALLDIR=$DESTDIR
|
export TARBALLDIR=$DESTDIR
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
if [ $CHARTYPE = both ]; then
|
if [ $CHARTYPE = both ]; then
|
||||||
distrib/mac/wxPythonOSX/build $PYVER inplace unicode $FLAGS
|
|
||||||
distrib/mac/wxPythonOSX/build $PYVER inplace ansi $FLAGS
|
distrib/mac/wxPythonOSX/build $PYVER inplace ansi $FLAGS
|
||||||
|
distrib/mac/wxPythonOSX/build $PYVER inplace unicode $FLAGS
|
||||||
else
|
else
|
||||||
distrib/mac/wxPythonOSX/build $PYVER inplace $CHARTYPE $FLAGS
|
distrib/mac/wxPythonOSX/build $PYVER inplace $CHARTYPE $FLAGS
|
||||||
fi
|
fi
|
||||||
|
@@ -18,16 +18,16 @@ set -o errexit
|
|||||||
|
|
||||||
echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
|
echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
|
||||||
|
|
||||||
if [ $# -lt 4 ]; then
|
if [ $# -lt 5 ]; then
|
||||||
echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER..."
|
echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER CHARTYPE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELEASE=$1
|
RELEASE=$1
|
||||||
SKIPCLEAN=$2
|
SKIPCLEAN=$2
|
||||||
VERSION=$3
|
VERSION=$3
|
||||||
shift;shift;shift
|
PYVER=$4
|
||||||
PYVER=$@
|
CHARTYPE=$5
|
||||||
|
|
||||||
rpmtop=_rpm_top
|
rpmtop=_rpm_top
|
||||||
|
|
||||||
@@ -71,16 +71,20 @@ done
|
|||||||
|
|
||||||
cp wxPython-src-$VERSION.tar.bz2 $rpmtop/SOURCES
|
cp wxPython-src-$VERSION.tar.bz2 $rpmtop/SOURCES
|
||||||
|
|
||||||
echo "******************** PYVER = " $PYVER
|
echo "************************************************"
|
||||||
for ver in $PYVER; do
|
echo "Building the RPMs for Python $PYVER, $CHARTYPE"
|
||||||
echo "Building the RPMs for Python $ver..."
|
|
||||||
|
|
||||||
## for now let's just do the gtk2 builds
|
## for now let's just do the gtk2 builds
|
||||||
##DoRPMBuild $ver gtk 0
|
##if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then
|
||||||
|
## DoRPMBuild $ver gtk 0
|
||||||
|
##fi
|
||||||
|
|
||||||
DoRPMBuild $ver gtk2 0
|
if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then
|
||||||
DoRPMBuild $ver gtk2 1
|
DoRPMBuild $PYVER gtk2 0
|
||||||
done
|
fi
|
||||||
|
if [ $CHARTYPE = both -o $CHARTYPE = unicode ]; then
|
||||||
|
DoRPMBuild $PYVER gtk2 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "*** Moving RPMs to ."
|
echo "*** Moving RPMs to ."
|
||||||
|
@@ -18,8 +18,8 @@ set -o errexit
|
|||||||
|
|
||||||
echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
|
echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
|
||||||
|
|
||||||
if [ $# -lt 5 ]; then
|
if [ $# -lt 6 ]; then
|
||||||
echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER..."
|
echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER CHARTYPE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ DESTDIR=$2
|
|||||||
SKIPCLEAN=$3
|
SKIPCLEAN=$3
|
||||||
VERSION=$4
|
VERSION=$4
|
||||||
PYVER=$5
|
PYVER=$5
|
||||||
|
CHARTYPE=$6
|
||||||
|
|
||||||
# WXDIR is the cygwin path, WXWIN is the DOS path
|
# WXDIR is the cygwin path, WXWIN is the DOS path
|
||||||
WXWIN=`cygpath -w $WXDIR`
|
WXWIN=`cygpath -w $WXDIR`
|
||||||
@@ -89,37 +89,47 @@ rm .my.sedexpr
|
|||||||
|
|
||||||
|
|
||||||
echo "Building the wx DLLs..."
|
echo "Building the wx DLLs..."
|
||||||
.make hybrid
|
if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then
|
||||||
.make hybrid-uni
|
.make hybrid
|
||||||
|
fi
|
||||||
|
if [ $CHARTYPE = both -o $CHARTYPE = unicode ]; then
|
||||||
|
.make hybrid-uni
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Building tex2rtf..."
|
# echo "Building tex2rtf..."
|
||||||
cd $WXDIR/utils/tex2rtf/src
|
# cd $WXDIR/utils/tex2rtf/src
|
||||||
$WXDIR/build/msw/.mymake hybrid
|
# $WXDIR/build/msw/.mymake hybrid
|
||||||
cp vc_mswhdll/tex2rtf.exe $WXDIR/lib/vc_dll/tex2rtf.exe
|
# cp vc_mswhdll/tex2rtf.exe $WXDIR/lib/vc_dll/tex2rtf.exe
|
||||||
|
|
||||||
|
# echo "Translating docs to html..."
|
||||||
|
# DOCDIR=$WXDIR/docs
|
||||||
|
# cd $DOCDIR/latex/wx
|
||||||
|
# mkdir -p $DOCDIR/html/wx
|
||||||
|
# cp *.gif $DOCDIR/html/wx
|
||||||
|
# cp *.css $DOCDIR/html/wx
|
||||||
|
# DOCSRC=`cygpath -w $DOCDIR/latex/wx/manual.tex`
|
||||||
|
# DOCDEST=`cygpath -w $DOCDIR/html/wx/wx.htm`
|
||||||
|
# DOCINI=`cygpath -w $DOCDIR/latex/wx/tex2rtf_css.ini`
|
||||||
|
|
||||||
|
# $WXDIR/lib/vc_dll/tex2rtf.exe $DOCSRC $DOCDEST -twice -html -macros $DOCINI
|
||||||
|
|
||||||
|
|
||||||
|
echo "Extracting html docs..."
|
||||||
|
mkdir -p $WXDIR/docs/html/wx
|
||||||
|
cd $WXDIR/docs/html/wx
|
||||||
|
rm -rf *
|
||||||
|
tar xjf $DESTDIR/wxPython-docs-$VERSION.tar.bz2
|
||||||
|
rm $DESTDIR/wxPython-docs-$VERSION.tar.bz2
|
||||||
|
unzip wxPython-$VERSION/docs/wx.zip
|
||||||
|
|
||||||
echo "Building the HTMLHelp file..."
|
echo "Building the HTMLHelp file..."
|
||||||
DOCDIR=$WXDIR/docs
|
cd $WXDIR/docs/html/wx
|
||||||
cd $DOCDIR/latex/wx
|
##cp $DOCDIR/latex/wx/wx.css .
|
||||||
mkdir -p $DOCDIR/html/wx
|
|
||||||
cp *.gif $DOCDIR/html/wx
|
|
||||||
cp *.css $DOCDIR/html/wx
|
|
||||||
DOCSRC=`cygpath -w $DOCDIR/latex/wx/manual.tex`
|
|
||||||
DOCDEST=`cygpath -w $DOCDIR/html/wx/wx.htm`
|
|
||||||
DOCINI=`cygpath -w $DOCDIR/latex/wx/tex2rtf_css.ini`
|
|
||||||
|
|
||||||
$WXDIR/lib/vc_dll/tex2rtf.exe $DOCSRC $DOCDEST -twice -html -macros $DOCINI
|
|
||||||
|
|
||||||
cd $DOCDIR/html/wx
|
|
||||||
cp $DOCDIR/latex/wx/wx.css .
|
|
||||||
$TOOLS/HTMLHelpWorkshop/hhc.exe wx.hhp || true
|
$TOOLS/HTMLHelpWorkshop/hhc.exe wx.hhp || true
|
||||||
mkdir -p ../../htmlhelp
|
mkdir -p ../../htmlhelp
|
||||||
mv wx.chm ../../htmlhelp
|
mv wx.chm ../../htmlhelp
|
||||||
|
|
||||||
# rm -f $DOCDIR/html/wx/*.con
|
|
||||||
# rm -f $DOCDIR/html/wx/*.ref
|
|
||||||
# rm -f $DOCDIR/latex/wx/*.con
|
|
||||||
# rm -f $DOCDIR/latex/wx/*.ref
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -127,16 +137,16 @@ mv wx.chm ../../htmlhelp
|
|||||||
echo "Building wxPython and installers..."
|
echo "Building wxPython and installers..."
|
||||||
cd $WXDIR/wxPython
|
cd $WXDIR/wxPython
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then
|
||||||
for ver in $PYVER; do
|
b $PYVER d UNICODE=0 USE_SWIG=0
|
||||||
echo $ver
|
b $PYVER h UNICODE=0 USE_SWIG=0 EP_ADD_OPTS=1
|
||||||
b $ver d UNICODE=0 USE_SWIG=0
|
b $PYVER r UNICODE=0 USE_SWIG=0
|
||||||
b $ver h UNICODE=0 USE_SWIG=0 EP_ADD_OPTS=1
|
fi
|
||||||
b $ver r UNICODE=0 USE_SWIG=0
|
if [ $CHARTYPE = both -o $CHARTYPE = unicode ]; then
|
||||||
b $ver d UNICODE=1 USE_SWIG=0
|
b $PYVER d UNICODE=1 USE_SWIG=0
|
||||||
b $ver h UNICODE=1 USE_SWIG=0 EP_ADD_OPTS=1
|
b $PYVER h UNICODE=1 USE_SWIG=0 EP_ADD_OPTS=1
|
||||||
b $ver r UNICODE=1 USE_SWIG=0
|
b $PYVER r UNICODE=1 USE_SWIG=0
|
||||||
done
|
fi
|
||||||
|
|
||||||
echo "Building the developer package..."
|
echo "Building the developer package..."
|
||||||
WXWIN=`cygpath -w $WXDIR`
|
WXWIN=`cygpath -w $WXDIR`
|
||||||
|
Reference in New Issue
Block a user