#!/bin/sh
qi="/usr/local/include/qt5"
qc="$qi/QtCore/qconfig-modules.h"
qm="linguist"
case $2 in
POST-DEINSTALL)
[ \! -e "$qc" ] && touch "$qc"
sed -i "" "/qconfig-$qm\.h/ d" "$qc"
[ \! -e "$qi/QtCore/qconfig.h" ] && \
[ \! -s "$qc" ] && (
rm -f "$qc"
rmdir "$qi/QtCore"
rmdir "$qi"
) > /dev/null 2>&1
:
;;
esac
