X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf158fe6c6e0e8c4879c6ac45ba47e8eaacce128..5c8ac0b6ca243b5bcc6c5e98b229c66abe932884:/wxPython/distrib/makerpm diff --git a/wxPython/distrib/makerpm b/wxPython/distrib/makerpm index b39243ea19..5acb514db4 100755 --- a/wxPython/distrib/makerpm +++ b/wxPython/distrib/makerpm @@ -3,6 +3,7 @@ # Build an RPM containing both wxGTK and wxPython ##set -o xtrace +##set -o errexit spectemplate=distrib/wxPythonFull.spec.in @@ -28,6 +29,7 @@ lcport=gtk unicode=0 tarname=wxPython-src srpmonly=0 +skipclean=0 #---------------------------------------------------------------------- # Check parameters @@ -140,6 +142,9 @@ if [ -z "${skipcopy}" ]; then cp -Rpf --link ${wxdir}/$d ${tarver} #> /dev/null 2>&1 fi done + mkdir ${tarver}/distrib + cp -Rpf --link ${wxdir}/distrib/scripts ${tarver}/distrib + # now do the same thing for wxPython, but use the DIRLIST to select dirs to copy for dir in `grep -v '#' ${wxdir}/wxPython/distrib/DIRLIST`; do @@ -164,7 +169,7 @@ if [ -z "${skipcopy}" ]; then rm -f ChangeLog rm *.spec rm -rf distrib/msw/tmake - rm -rf docs/html + #rm -rf docs/html #rm -rf docs/latex #rm -rf contrib/docs #rm -rf contrib/samples @@ -177,9 +182,11 @@ if [ -z "${skipcopy}" ]; then cleanup "*.pyc" cleanup core cleanup "core.[0-9]*" + rm -f wxPython/samples/embedded/embedded + rm -f wxPython/samples/embedded/embedded.o # ports that are not supported yet - cleanup cocoa + #cleanup cocoa # wxMac needs some cocoa headers cleanup mgl cleanup motif cleanup os2 @@ -230,7 +237,7 @@ fi #---------------------------------------------------------------------- # build the RPM -if [ -z "${skiprpm}" ]; then +if [ "${skiprpm}" != "1" ]; then echo "*** Building RPMs..." cp ${distdir}/${tarver}.tar.bz2 ${rpmtop}/SOURCES @@ -276,7 +283,7 @@ fi #---------------------------------------------------------------------- # Cleanup -if [ -z ${skipclean} ]; then +if [ "${skipclean}" = "0" ]; then echo "*** Cleaning up" rm -rf ${rpmtop} rm -rf ${builddir}