slackbuilds_ponce/libraries/libvdpau/doinst.sh
Edward Koenig cacf1753d4 libraries/libvdpau: Updated for version 0.7.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2013-10-27 23:38:52 -05:00

15 lines
382 B
Bash

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