> There is no way that I know of to detect if source files of qt
> projects require qt3 or qt4.
There may be no completely foolproof way, but it's pretty easy to make
a good guess.
How about, if both qmake-qt3 and qmake-qt4 are available, use
qmake-qt4 if the string qt4 is present in the build dependencies, if
not then use qmake-qt3 if the string qt3 is present, otherwise just
use plain qmake.
This might not be particularly robust, but would work about 98.6% of
the time, would require no changes in the packaging info but only in
debhelper, and is simple and easy to implement and explain.
(Another alternative would be to grovel through the sources for the
strings qt3 and qt4 and take some sort of vote
$ git grep qt4 -- '*.cbp' | wc -l
11
$ git grep qt3 | wc -l
0
but that would be hideous.)
--Barak.
--
Barak A. Pearlmutter
Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
http://www.bcl.hamilton.ie/~barak/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]