summaryrefslogtreecommitdiffstats
path: root/dilos/dependencies/tqt3/debian/maintain/build-examples.sh
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2019-08-25 21:13:36 +0300
committerSlávek Banko <slavek.banko@axis.cz>2019-09-09 21:06:19 +0200
commit9e40aca75e29bf5202146a6b33d0d0723b6a3f89 (patch)
tree85dec3e30329ac2c9528a05531a00d2e69684708 /dilos/dependencies/tqt3/debian/maintain/build-examples.sh
parentd6186b70e9266ac8f07cd834dfc2c36b48623521 (diff)
downloadtde-packaging-9e40aca75e29bf5202146a6b33d0d0723b6a3f89.tar.gz
tde-packaging-9e40aca75e29bf5202146a6b33d0d0723b6a3f89.zip
DilOS: Add package tqt3
Signed-off-by: Denis Kozadaev <denis@dilos.org>
Diffstat (limited to 'dilos/dependencies/tqt3/debian/maintain/build-examples.sh')
-rw-r--r--dilos/dependencies/tqt3/debian/maintain/build-examples.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/dilos/dependencies/tqt3/debian/maintain/build-examples.sh b/dilos/dependencies/tqt3/debian/maintain/build-examples.sh
new file mode 100644
index 000000000..f62d83b85
--- /dev/null
+++ b/dilos/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 ntqconfig.h is not really correct with the
+# ifdef's for the TQT_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