summaryrefslogtreecommitdiffstats
path: root/config.profiles/harmattan/libqt4-dev.postinst
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-03-14 02:33:07 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-03-14 02:33:07 (GMT)
commite8a56e6d49d93b552786ac2e56e82c3c178eb090 (patch)
treefc767888a2001943a6efad1382ce7a91b3d83faf /config.profiles/harmattan/libqt4-dev.postinst
parenta7d685332372854177a0f152706927e069bee919 (diff)
parentccd2feb1ec829af15073763218c258cb4d0b0525 (diff)
downloadQt-e8a56e6d49d93b552786ac2e56e82c3c178eb090.zip
Qt-e8a56e6d49d93b552786ac2e56e82c3c178eb090.tar.gz
Qt-e8a56e6d49d93b552786ac2e56e82c3c178eb090.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-releng-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-releng-team: Harmattan: fixed license headers. Added Harmattan specific debian files to master branch.
Diffstat (limited to 'config.profiles/harmattan/libqt4-dev.postinst')
-rw-r--r--config.profiles/harmattan/libqt4-dev.postinst21
1 files changed, 21 insertions, 0 deletions
diff --git a/config.profiles/harmattan/libqt4-dev.postinst b/config.profiles/harmattan/libqt4-dev.postinst
new file mode 100644
index 0000000..2ab29ff
--- /dev/null
+++ b/config.profiles/harmattan/libqt4-dev.postinst
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+SPECDIR=/usr/share/qt4/mkspecs
+
+rm -f ${SPECDIR}/default
+ln -s ${SPECDIR}/#PLATFORM_ARG# ${SPECDIR}/default
+
+PREFIX=native
+if [ -f /targets/links/scratchbox.config ]; then
+ PREFIX=host
+fi
+
+BINARIES="qmake moc rcc uic"
+
+for bin in $BINARIES; do
+ ln -sf "/usr/bin/${PREFIX}-${bin}" "/usr/bin/${bin}"
+done
+
+#DEBHELPER#