summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/dependencies/qt3/debian/maintain/build-examples.sh
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-22 16:48:05 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-22 16:48:05 -0500
commita60484dd14c5668eb121c33fa44577b1b7e59b5e (patch)
tree4bea7d7b943afa22f46f5aa943749eabf743e106 /ubuntu/maverick/dependencies/qt3/debian/maintain/build-examples.sh
parent98f3f6433889e53ea37744c8ee953a51b92d2ef4 (diff)
downloadtde-packaging-a60484dd14c5668eb121c33fa44577b1b7e59b5e.tar.gz
tde-packaging-a60484dd14c5668eb121c33fa44577b1b7e59b5e.zip
Added qt3 to maverick
Diffstat (limited to 'ubuntu/maverick/dependencies/qt3/debian/maintain/build-examples.sh')
-rw-r--r--ubuntu/maverick/dependencies/qt3/debian/maintain/build-examples.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/ubuntu/maverick/dependencies/qt3/debian/maintain/build-examples.sh b/ubuntu/maverick/dependencies/qt3/debian/maintain/build-examples.sh
new file mode 100644
index 000000000..b56d51e42
--- /dev/null
+++ b/ubuntu/maverick/dependencies/qt3/debian/maintain/build-examples.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+BUILDDIR=$PWD
+export QTDIR=/usr/share/qt3
+
+# first copy over the libqt-mt.so build configuration of .qmake.cache
+cp /usr/share/qt3/.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