From 620b34b176f6d9ad9cccece34b3e32fb803186f3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 7 Nov 2011 11:05:55 -0600 Subject: Add tqt3 packaging files for Ubuntu --- .../tqt3/debian/maintain/build-examples.sh | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ubuntu/maverick/dependencies/tqt3/debian/maintain/build-examples.sh (limited to 'ubuntu/maverick/dependencies/tqt3/debian/maintain/build-examples.sh') diff --git a/ubuntu/maverick/dependencies/tqt3/debian/maintain/build-examples.sh b/ubuntu/maverick/dependencies/tqt3/debian/maintain/build-examples.sh new file mode 100644 index 000000000..25da9bf59 --- /dev/null +++ b/ubuntu/maverick/dependencies/tqt3/debian/maintain/build-examples.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +BUILDDIR=$PWD +export QTDIR=/usr/share/tqt3 + +# first copy over the libtqt-mt.so build configuration of .qmake.cache +cp /usr/share/tqt3/.qmake.cache ./.qmake.cache + +# Now compile the examples. The themes example +# won't work since qconfig.h is not really correct with the +# ifdef's for the QT_NO_xyz_STYLE, so we use make -k to continue +cd examples; qmake -o Makefile examples.pro; make -k + +# Now compile the tutorial. +cd $BUILDDIR/tutorial; qmake -o Makefile tutorial.pro; make + +# Then the designer examples. +cd $BUILDDIR/tools/designer/examples +for a in `find . -type d -maxdepth 1 -mindepth 1`; do + cd $a && qmake -o Makefile $a.pro; make; cd ..; +done + +# There is a bigger sql example in book/ with more subdirectories: +cd book +for a in `find . -type d -maxdepth 1 -mindepth 1`; do + cd $a && qmake -o Makefile $a.pro; make; cd ..; +done + +# Finally, build the linguist tutorials: +cd $BUILDDIR/tools/linguist/tutorial +for a in `find . -type d -maxdepth 1 -mindepth 1`; do + cd $a && qmake -o Makefile $a.pro; make; cd ..; +done + +# Return to the build directory +cd $BUILDDIR -- cgit v1.2.1