#! /bin/sh -e #edited in rules file DIVERT_LIST="%FILES_TO_BE_DIVERTED%" for FILE_NAME in $DIVERT_LIST;do echo "dpkg-divert --package lliurex-mime-settings --add --rename --divert /usr/lib/mime/packages/$FILE_NAME.diverted /usr/share/lliurex-mime-settings/diverted/$FILE_NAME" mkdir -p /usr/share/lliurex-mime-settings/diverted/ dpkg-divert --package lliurex-mime-settings --add --rename --divert /usr/share/lliurex-mime-settings/diverted/$FILE_NAME.diverted /usr/lib/mime/packages/$FILE_NAME done; #DEBHELPER# exit 0