From 5180f8904eac1d3a659e347314ef99a0d4d1741d Mon Sep 17 00:00:00 2001 From: Francesco Saverio Giudice Date: Mon, 6 Apr 2009 15:57:09 +0000 Subject: [PATCH] 2009-04-06 17:58 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com) + harbour/contrib/hbqt/generator/rebuild_hbqt.bat + Added batch to generate fresh hbqt sources from headers --- harbour/ChangeLog | 4 ++ .../contrib/hbqt/generator/rebuild_hbqt.bat | 59 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 harbour/contrib/hbqt/generator/rebuild_hbqt.bat diff --git a/harbour/ChangeLog b/harbour/ChangeLog index dc52393bce..b9fadae952 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-04-06 17:58 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com) + + harbour/contrib/hbqt/generator/rebuild_hbqt.bat + + Added batch to generate fresh hbqt sources from headers + 2009-04-06 17:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/bin/hb-func.sh * renamed --hbbindir --hblibdir --hbincdir parameters to diff --git a/harbour/contrib/hbqt/generator/rebuild_hbqt.bat b/harbour/contrib/hbqt/generator/rebuild_hbqt.bat new file mode 100644 index 0000000000..a78b810ad6 --- /dev/null +++ b/harbour/contrib/hbqt/generator/rebuild_hbqt.bat @@ -0,0 +1,59 @@ +@echo off +rem $Id$ +rem + +IF %HB_COMPILER%.==. GOTO ERR_ENV + +echo. Making hbqtgen ... +hbmk2.exe hbqtgen +echo. done +echo. +echo. Cleaning gensource and doc folders ... +del ..\gensource\*.prg > nul +del ..\gensource\*.cpp > nul +del ..\gensource\*.h > nul +del ..\gensource\Makefile_gen > nul +del ..\doc\*.txt > nul +echo. done +echo. +echo. Generating gensource and doc files +hbqtgen.exe qt45.qtp > hbqtgen.log 2>&1 +IF NOT ERRORLEVEL 0 GOTO SHOW_ERROR +echo. done +echo. +echo. Cleaning hbqt root files ... +del ..\*.prg > nul +del ..\*.cpp > nul +del ..\*.h > nul +del ..\Makefile_gen. > nul +echo. done +echo. +echo. Copying source files ... +copy ..\gensource\*.prg .. > nul +copy ..\gensource\*.cpp .. > nul +copy ..\gensource\*.h .. > nul +copy ..\gensource\Makefile_gen .. > nul +echo. done +echo. +echo. Change folder to hbqt root +cd .. +echo. completed. +echo. +echo. Please now rebuild SVN using command: +echo. make_gnu install +echo. + +GOTO END_BATCH + +:SHOW_ERROR +echo. There is an error on building hbqt. +echo. Please check hbqtgen.log file +GOTO END_BATCH + +:ERR_ENV +echo. Please set correctly your environment: +echo. set HB_COMPILER=mingw +echo. and your PATH, then restart this batch. + +:END_BATCH +