summaryrefslogtreecommitdiff
path: root/multimedia/mlt/doinst.sh
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf@gmail.com>2016-10-29 05:54:05 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-29 05:54:05 +0700
commita22919819fb62e3c01efb5cde1f0df49d6e6f182 (patch)
tree067612ee7d48184ff7e57645a1145be55570ac8e /multimedia/mlt/doinst.sh
parent6495237d5ccb8a7e9861789a987723b1cfeccb48 (diff)
downloadslackbuilds-a22919819fb62e3c01efb5cde1f0df49d6e6f182.tar.gz
multimedia/mlt: added optional qt5 support, various fixes.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/mlt/doinst.sh')
-rw-r--r--multimedia/mlt/doinst.sh14
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