mirror of
git://slackware.nl/current.git
synced 2024-12-27 09:59:16 +01:00
9f8168864e
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.
26 lines
731 B
Bash
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
|