slackware-current/source/kde/doinst.sh/kde-workspace
Patrick J Volkerding 194ec853e8 Thu Feb 6 01:59:35 UTC 2020
a/hwdata-0.332-noarch-1.txz:  Upgraded.
a/kernel-firmware-20200204_b791e15-noarch-1.txz:  Upgraded.
a/kernel-generic-5.4.18-x86_64-1.txz:  Upgraded.
a/kernel-huge-5.4.18-x86_64-1.txz:  Upgraded.
a/kernel-modules-5.4.18-x86_64-1.txz:  Upgraded.
d/cmake-3.16.4-x86_64-1.txz:  Upgraded.
d/icecream-1.3.1-x86_64-1.txz:  Upgraded.
d/kernel-headers-5.4.18-x86-1.txz:  Upgraded.
k/kernel-source-5.4.18-noarch-1.txz:  Upgraded.
xap/xlockmore-5.62-x86_64-1.txz:  Upgraded.
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2020-02-06 08:59:47 +01:00

25 lines
660 B
Bash

#!/bin/sh
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 usr/share/applications >/dev/null 2>&1
fi
if [ -x usr/bin/update-mime-database ]; then
usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
config etc/kde/kdm/backgroundrc.new
config etc/kde/kdm/kdmrc.new