#!/bin/sh -e DEFAULTS_FILE="/etc/gnome/defaults.list" MODELLUS_MIME="application/modellus" MODELLUS_DESKTOP="modellus.desktop" if [ -f "$DEFAULTS_FILE" ] && ! grep -q "^${MODELLUS_MIME}=${MODELLUS_DESKTOP}" "$DEFAULTS_FILE" ; then TMP_FILE="$(tempfile)" cp -a "$DEFAULTS_FILE" "$TMP_FILE" sed -i -e "\%^${MODELLUS_MIME}=%d" "$TMP_FILE" echo "${MODELLUS_MIME}=${MODELLUS_DESKTOP}" >> "$TMP_FILE" mv "$TMP_FILE" "$DEFAULTS_FILE" fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER#