X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14fc1a0c5c8df8f40b362e7a5df7e639c3b7c1f9..0604740afd3f5e1cc576787592761c8a0e14cdac:/build/script/rebuild-makefiles.sh?ds=inline diff --git a/build/script/rebuild-makefiles.sh b/build/script/rebuild-makefiles.sh index 78a7dc9edf..5031074b1d 100644 --- a/build/script/rebuild-makefiles.sh +++ b/build/script/rebuild-makefiles.sh @@ -10,6 +10,9 @@ update_from_cvs() ( cd ${WORKDIR}/wxWidgets && cvs -z3 update -P -d ) + ( + cd ${WORKDIR}/wxGTK && cvs -z3 update -P + ) } @@ -45,9 +48,10 @@ do_package() package_cvs() { - rm -f ${WORKDIR}/archives/wx-cvs-* + rm -f ${WORKDIR}/archives/wx-cvs-$1* cd ${WORKDIR}/ - tar jcf ./archives/wx-cvs-${CURDATE}.tar.bz2 ./wxWidgets + ##tar --exclude=*.ds* -jcf ./archives/test.tar.bz2 ./wxGTK + tar --exclude=*.ds* -jcf ./archives/wx-cvs-$1-${CURDATE}.tar.bz2 ./$2 } @@ -67,13 +71,14 @@ copy_files () { ##delete old files and then copy new ones, add a symlink ## CVS -find ${FTPDIR}/CVS_HEAD/files -type f -name wx-cvs\*.tar.bz2 -mtime +6 | xargs rm -rf +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_Makefiles/files -type f -name wx-cvs\* -mmin -601` ; do +rm ${FTPDIR}/CVS_HEAD/wx* ${FTPDIR}/CVS_HEAD/MD5SUM +for f in `find ${FTPDIR}/CVS_HEAD/files -type f -name wx-cvs\* -mmin -601` ; do ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" ` done +md5sum ${FTPDIR}/CVS_HEAD/wx* > ${FTPDIR}/CVS_HEAD/MD5SUM ## make sure updated at is really last sleep 10 echo cvs checkout done at `date -u` > ${FTPDIR}/CVS_HEAD/updated_at.txt @@ -82,11 +87,12 @@ echo cvs checkout done at `date -u` > ${FTPDIR}/CVS_HEAD/updated_at.txt find ${FTPDIR}/CVS_Makefiles/files -type f -name wx-mk\* -mtime +3 | xargs rm -rf cp ${WORKDIR}/archives/wx-mk-* ${FTPDIR}/CVS_Makefiles/files -rm ${FTPDIR}/CVS_Makefiles/wx* -##there musrt be an easier way of doing these links... +rm ${FTPDIR}/CVS_Makefiles/wx* ${FTPDIR}/CVS_Makefiles/MD5SUM +##there must be an easier way of doing these links... for f in `find ${FTPDIR}/CVS_Makefiles/files -type f -name wx-mk\* -mmin -601` ; do ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" ` done +md5sum ${FTPDIR}/CVS_Makefiles/wx* > ${FTPDIR}/CVS_Makefiles/MD5SUM sleep 10 echo CVS Makefiles generated from bakefiles last updated at `date -u` > ${FTPDIR}/CVS_Makefiles/updated_at.txt @@ -95,11 +101,12 @@ echo CVS Makefiles generated from bakefiles last updated at `date -u` > ${FTPDIR find ${FTPDIR}/CVS_Docs/files -type f -name wx-do\* -mtime +3 | xargs rm -rf cp ${WORKDIR}/archives/wx-docs-* ${FTPDIR}/CVS_Docs/files -rm ${FTPDIR}/CVS_Docs/wx* -##there musrt be an easier way of doing these links... +rm ${FTPDIR}/CVS_Docs/wx* ${FTPDIR}/CVS_Docs/MD5SUM +##there must be an easier way of doing these links... for f in `find ${FTPDIR}/CVS_Docs/files -type f -name wx-do\* -mmin -601` ; do ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" ` done +md5sum ${FTPDIR}/CVS_Docs/wx* > ${FTPDIR}/CVS_Docs/MD5SUM sleep 10 echo CVS Documentation generated from bakefiles last updated at `date -u` > ${FTPDIR}/CVS_Docs/updated_at.txt } @@ -113,7 +120,8 @@ rm ${WORKDIR}/archives/html/$1/* 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... @@ -125,7 +133,8 @@ rm ${WORKDIR}/archives/html/$1/* 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 () @@ -164,6 +173,7 @@ for f in `find ${WORKDIR}/archives/win/ -name wx\*.ZIP ` ; do mv $f ${WORKDIR}/archives/`basename $f | tr -d ".ZIP"`-${CURDATE}.zip done +rm ${WORKDIR}/archives/*.exe for f in `find ${WORKDIR}/archives/win/ -name wx\*.EXE ` ; do mv $f ${WORKDIR}/archives/`basename $f | tr -d ".EXE"`-${CURDATE}.exe done @@ -173,7 +183,8 @@ for f in `find ${WORKDIR}/archives/win/ -name wx\*.EXE ` ; do update_from_cvs regenerate_makefiles package_makefiles -package_cvs +package_cvs All wxWidgets +package_cvs Gtk wxGTK do_docs add_win_files