diff options
Diffstat (limited to 'multimedia/mlt/doinst.sh')
-rw-r--r-- | multimedia/mlt/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/mlt/doinst.sh b/multimedia/mlt/doinst.sh index e4e6459838..a5c05bf595 100644 --- a/multimedia/mlt/doinst.sh +++ b/multimedia/mlt/doinst.sh @@ -1,3 +1,16 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi @@ -6,3 +19,4 @@ if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi +config etc/php.d/mlt.ini.new |