slackware-current/source/xap/mpv/doinst.sh
Patrick J Volkerding 9f8168864e Fri May 31 18:49:48 UTC 2024
a/hwdata-0.383-noarch-1.txz:  Upgraded.
a/pciutils-3.13.0-x86_64-1.txz:  Upgraded.
d/ccache-4.10-x86_64-1.txz:  Upgraded.
d/meson-1.4.1-x86_64-1.txz:  Upgraded.
d/ruby-3.3.2-x86_64-1.txz:  Upgraded.
kde/plasma-sdk-5.27.11.1-x86_64-1.txz:  Upgraded.
kde/plasma-workspace-5.27.11.1-x86_64-1.txz:  Upgraded.
kde/tokodon-23.08.5-x86_64-1.txz:  Added.
l/libvpx-1.14.1-x86_64-1.txz:  Upgraded.
l/python-requests-2.32.3-x86_64-1.txz:  Upgraded.
n/NetworkManager-1.48.0-x86_64-1.txz:  Upgraded.
n/getmail-6.19.00-x86_64-1.txz:  Upgraded.
x/libevdev-1.13.2-x86_64-1.txz:  Upgraded.
x/wayland-1.23.0-x86_64-1.txz:  Upgraded.
xap/gnuplot-6.0.1-x86_64-1.txz:  Upgraded.
xap/mpv-0.38.0-x86_64-1.txz:  Added.
  Evidently we need one more media player. ;-)
  Thanks to John Vogel Corning, Andreas Guldstrand, and Christoph Willing.
2024-05-31 21:34:09 +02:00

26 lines
731 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...
}
for config in etc/mpv/*.conf.new ; do
config $config
done
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi