summaryrefslogtreecommitdiffstats
path: root/config.profiles/harmattan/libqt4-dev.postinst
blob: 2ab29ff0a589bf56ac7279cb7a03a1d116fc5284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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#