X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5b14075b413b4b5cd01f7f2259cafbe6ce31b21..1b12ec1259164908657245d82c877812c505beba:/build/script/rebuild-makefiles.sh diff --git a/build/script/rebuild-makefiles.sh b/build/script/rebuild-makefiles.sh index f4abf2996d..c8d1f2f08a 100644 --- a/build/script/rebuild-makefiles.sh +++ b/build/script/rebuild-makefiles.sh @@ -2,20 +2,24 @@ CURDATE=`date -I` WORKDIR=/home/bake/bkl-cronjob +WINSRCDIR=/mnt/daily FTPDIR=/home/ftp/pub LD_LIBRARY_PATH=/usr/local/lib -update_from_cvs() +update_from_svn() { ( - cd ${WORKDIR}/wxWidgets && cvs -z3 update -P -d + cd ${WORKDIR}/wxWidgets + svn up + find . -name \.#\* | xargs rm -rf ) + } regenerate_makefiles() { - (cd ${WORKDIR}/wxWidgets/build/bakefiles && nice python -O ${WORKDIR}/bakefile/bin/bakefile_gen) + (cd ${WORKDIR}/wxWidgets/build/bakefiles && nice python -O /usr/local/bin/bakefile_gen) } @@ -43,113 +47,128 @@ do_package() cd .. } -package_cvs() -{ - rm -f ${WORKDIR}/archives/wx-cvs-* - cd ${WORKDIR}/ - tar jcf ./archives/wx-cvs-${CURDATE}.tar.bz2 ./wxWidgets -} + package_makefiles() { do_package tar autoconf Makefile.in autoconf_inc.m4 - do_package zip borland makefile.bcc config.bcc + do_package zip gnu makefile.unx + do_package tar gnu makefile.unx do_package zip mingw makefile.gcc config.gcc do_package zip dmars makefile.dmc config.dmc makefile.dms config.dms - do_package zip watcom makefile.wat config.wat + do_package zip watcom_msw makefile.wat config.wat do_package zip msvc makefile.vc config.vc do_package zip msvc6prj '*.dsp' '*.dsw' do_package zip evcprj '*.vcp' '*.vcw' + (cd ${WORKDIR}/wxWidgets/build/bakefiles && nice python -O /usr/local/bin/bakefile_gen -f watcom -d ../os2/Bakefiles.os2.bkgen) + do_package zip watcom_os2 makefile.wat config.wat } copy_files () { ##delete old files and then copy new ones, add a symlink -## CVS -find ${FTPDIR}/CVS_HEAD/files -type f -name wx-cvs\* -mtime +6 | xargs rm -rf -cp ${WORKDIR}/archives/wx-cvs-* ${FTPDIR}/CVS_HEAD/files -rm ${FTPDIR}/CVS_HEAD/wx* -for f in `find ${FTPDIR}/CVS_HEAD/files -type f -name wx-cvs\* -mmin -601` ; do +## Makefiles +find ${FTPDIR}/Daily_Makefiles/files -type f -name wx-mk\* -mtime +3 | xargs rm -rf +cp ${WORKDIR}/archives/wx-mk-* ${FTPDIR}/Daily_Makefiles/files + +rm -f ${FTPDIR}/Daily_Makefiles/wx* ${FTPDIR}/Daily_Makefiles/MD5SUM +##there must be an easier way of doing these links... +for f in `find ${FTPDIR}/Daily_Makefiles/files -type f -name wx-mk\* -mmin -601` ; do ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" ` done -## make sure updated at is really last +md5sum ${FTPDIR}/Daily_Makefiles/wx* > ${FTPDIR}/Daily_Makefiles/MD5SUM sleep 10 -echo cvs checkout done at `date -u` > ${FTPDIR}/CVS_HEAD/updated_at.txt +echo CVS Makefiles generated from bakefiles last updated at `date -u` > ${FTPDIR}/Daily_Makefiles/updated_at.txt -## Makefiles -find ${FTPDIR}/CVS_Makefiles/files -type f -name wx-mk\* -mtime +3 | xargs rm -rf -cp ${WORKDIR}/archives/wx-mk-* ${FTPDIR}/CVS_Makefiles/files +## Setup.exe +find ${FTPDIR}/Daily_HEAD/files -type f -name wx\* -mtime +3 | xargs rm -rf +cp ${WORKDIR}/archives/win/*.exe ${FTPDIR}/Daily_HEAD/files -rm ${FTPDIR}/CVS_Makefiles/wx* -##there musrt be an easier way of doing these links... -for f in `find ${FTPDIR}/CVS_Makefiles/files -type f -name wx-mk\* -mmin -601` ; do +rm -f ${FTPDIR}/Daily_HEAD/*.exe ${FTPDIR}/Daily_HEAD/MD5SUM +##there must be an easier way of doing these links... +for f in `find ${FTPDIR}/Daily_HEAD/files -type f -name wx\*.exe -mmin -601` ; do ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" ` done +md5sum ${FTPDIR}/Daily_HEAD/wx* > ${FTPDIR}/Daily_HEAD/MD5SUM sleep 10 -echo CVS Makefiles generated from bakefiles last updated at `date -u` > ${FTPDIR}/CVS_Makefiles/updated_at.txt +echo CVS HEAD last updated at `date -u` > ${FTPDIR}/Daily_HEAD/updated_at.txt ## Docs... -find ${FTPDIR}/CVS_Docs/files -type f -name wx-do\* -mtime +3 | xargs rm -rf -cp ${WORKDIR}/archives/wx-docs-* ${FTPDIR}/CVS_Docs/files +find ${FTPDIR}/Daily_Docs/files -type f -name wx\* -mtime +3 | xargs rm -rf +cp ${WORKDIR}/archives/wx-doc* ${FTPDIR}/Daily_Docs/files +cp ${WORKDIR}/archives/win/wxW* ${FTPDIR}/Daily_Docs/files -rm ${FTPDIR}/CVS_Docs/wx* -##there musrt be an easier way of doing these links... -for f in `find ${FTPDIR}/CVS_Docs/files -type f -name wx-do\* -mmin -601` ; do +rm -f ${FTPDIR}/Daily_Docs/wx* ${FTPDIR}/Daily_Docs/MD5SUM +##there must be an easier way of doing these links... +for f in `find ${FTPDIR}/Daily_Docs/files -type f -name wx\* -mmin -601` ; do ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" ` done +md5sum ${FTPDIR}/Daily_Docs/wx* > ${FTPDIR}/Daily_Docs/MD5SUM sleep 10 -echo CVS Documentation generated from bakefiles last updated at `date -u` > ${FTPDIR}/CVS_Docs/updated_at.txt +echo CVS Documentation generated from bakefiles last updated at `date -u` > ${FTPDIR}/Daily_Docs/updated_at.txt } do_texrtf () { ##parameters : subdir_of_tex index.tex dir_under_wxWidgets -rm ${WORKDIR}/archives/html/$1/* +# need this first time only +if [ ! -e ${WORKDIR}/archives/html/$1 ] ; then + mkdir ${WORKDIR}/archives/html/$1 +fi + +rm -f ${WORKDIR}/archives/html/$1/* /usr/local/bin/tex2rtf ${WORKDIR}/wxWidgets/$3/docs/latex/$1/$2 ${WORKDIR}/archives/html/$1/$1 -twice -html -macros ${WORKDIR}/wxWidgets/docs/latex/wx/tex2rtf_css.ini cp ${WORKDIR}/wxWidgets/$3/docs/latex/$1/*.gif ${WORKDIR}/archives/html/$1 cp ${WORKDIR}/wxWidgets/$3/docs/latex/$1/*.css ${WORKDIR}/archives/html/$1 cd ${WORKDIR}/archives/html/$1 -zip -l -q -9 ${WORKDIR}/archives/htb/$1.htb *.html *.gif *.css wx.hhc wx.hhp wx.hhk +zip -l -q -9 ${WORKDIR}/archives/htb/$1.htb *.html *.css wx.hhc wx.hhp wx.hhk +zip -q -9 ${WORKDIR}/archives/htb/$1.htb *.gif } ##this one for tex2rtf as its latex docs aren't in latex... do_util_texrtf () { ##parameters : subdir_of_tex index.tex -rm ${WORKDIR}/archives/html/$1/* +# need this first time only +if [ ! -e ${WORKDIR}/archives/html/$1 ] ; then + mkdir ${WORKDIR}/archives/html/$1 +fi + +rm -f ${WORKDIR}/archives/html/$1/* /usr/local/bin/tex2rtf ${WORKDIR}/wxWidgets/utils/$1/docs/$2 ${WORKDIR}/archives/html/$1/$1 -twice -html -macros ${WORKDIR}/wxWidgets/docs/latex/wx/tex2rtf_css.ini cp ${WORKDIR}/wxWidgets/utils/$1/docs/*.gif ${WORKDIR}/archives/html/$1 cp ${WORKDIR}/wxWidgets/utils/$1/docs/*.css ${WORKDIR}/archives/html/$1 cd ${WORKDIR}/archives/html/$1 -zip -l -q -9 ${WORKDIR}/archives/htb/$1.htb *.html *.gif *.css wx.hhc wx.hhp wx.hhk +zip -l -q -9 ${WORKDIR}/archives/htb/$1.htb *.html *.css wx.hhc wx.hhp wx.hhk +zip -q -9 ${WORKDIR}/archives/htb/$1.htb *.gif } do_docs () { ##remove files, then regenerate -rm ${WORKDIR}/archives/wx-docs* +rm ${WORKDIR}/archives/wx-do* +rm ${WORKDIR}/archives/win/wx* rm ${WORKDIR}/archives/htb/*.* ######### dir index.tex rootdir do_texrtf wx manual.tex -do_texrtf book book.tex -do_texrtf svg dcsvg.tex contrib -do_texrtf ogl ogl.tex contrib -do_texrtf mmedia mmedia.tex contrib -do_texrtf gizmos manual.tex contrib -do_texrtf fl fl.tex contrib +#do_texrtf book book.tex +#do_texrtf svg dcsvg.tex contrib +#do_texrtf ogl ogl.tex contrib +#do_texrtf mmedia mmedia.tex contrib +#do_texrtf gizmos manual.tex contrib +#do_texrtf fl fl.tex contrib do_util_texrtf tex2rtf tex2rtf.tex cd ${WORKDIR}/archives/ -tar zcvf ${WORKDIR}/archives/wx-docs-html-${CURDATE}.tar.gz html/wx/*.html html/wx/*.gif html/wx/*.css -tar zcvf ${WORKDIR}/archives/wx-docs-extra-html-${CURDATE}.tar.gz `find . -name 'wx' -prune -o -name '*.html' -print` +tar zcvf ${WORKDIR}/archives/wx-docs-html-${CURDATE}.tar.gz `find . -name '*.gif' -print -o -name '*.html' -print` html/wx/*.css -tar zcvf ${WORKDIR}/archives/wx-docs-htb-${CURDATE}.tar.gz htb/wx.htb -tar zcvf ${WORKDIR}/archives/wx-docs-extra-htb-${CURDATE}.tar.gz --exclude wx.htb htb/*.htb +tar zcvf ${WORKDIR}/archives/wx-docs-htb-${CURDATE}.tar.gz htb/* +zip -q -9 ${WORKDIR}/archives/wx-docs-htb-${CURDATE}.zip htb/* ##remove .con files rm ${WORKDIR}/*.con @@ -159,21 +178,21 @@ rm ${WORKDIR}/*.con add_win_files () { -### starts with wx-docs-xxx.zip -for f in `find ${WORKDIR}/archives/win/ -name wx\*.ZIP ` ; do - mv $f ${WORKDIR}/archives/`basename $f | tr -d ".ZIP"`-${CURDATE}.zip +### starts with wx***.zip + +for f in `find ${WINSRCDIR}/ -maxdepth 1 -name wx\*.zip ` ; do + cp $f ${WORKDIR}/archives/win/`basename $f | sed -e "s/.zip//"`-${CURDATE}.zip done -for f in `find ${WORKDIR}/archives/win/ -name wx\*.EXE ` ; do - mv $f ${WORKDIR}/archives/`basename $f | tr -d ".EXE"`-${CURDATE}.exe +for f in `find ${WINSRCDIR}/ -maxdepth 1 -name wx\*.exe ` ; do + cp $f ${WORKDIR}/archives/win/`basename $f | sed -e "s/.exe//"`-${CURDATE}.exe done } -update_from_cvs +update_from_svn regenerate_makefiles package_makefiles -package_cvs do_docs add_win_files