#!/bin/sh
set -e
if [ "x$D" != "x" ]; then
	$INTERCEPT_DIR/postinst_intercept update_mime_database nativesdk-shared-mime-info-data \
		mlprefix=nativesdk- \
		mimedir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/share/mime
else
	echo "Updating MIME database... this may take a while."
	update-mime-database $D/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/usr/share/mime
fi
