summaryrefslogtreecommitdiffstats
path: root/libraries/libvdpau/doinst.sh
diff options
context:
space:
mode:
author Edward Koenig <kingbeowulf@gmail.com>2013-10-26 10:34:06 -0500
committer Robby Workman <rworkman@slackbuilds.org>2013-10-27 23:38:52 -0500
commitcacf1753d40a183b145f5d79655167fcd97e71ee (patch)
treeb2254799df3457fd8781c1d3d0b8c03b837f2500 /libraries/libvdpau/doinst.sh
parent6a2f42dd2ab9ecc4b8e7d15e087f8d9c27a3e8ce (diff)
downloadslackbuilds-cacf1753d40a183b145f5d79655167fcd97e71ee.tar.gz
slackbuilds-cacf1753d40a183b145f5d79655167fcd97e71ee.tar.xz
libraries/libvdpau: Updated for version 0.7.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libvdpau/doinst.sh')
-rw-r--r--libraries/libvdpau/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/libvdpau/doinst.sh b/libraries/libvdpau/doinst.sh
new file mode 100644
index 0000000000..15cd7163be
--- /dev/null
+++ b/libraries/libvdpau/doinst.sh
@@ -0,0 +1,15 @@
+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...
+}
+
+config etc/vdpau_wrapper.cfg.new
+