2014-11-14 14:20:07 +02:00
|
|
|
config() {
|
|
|
|
NEW="$1"
|
|
|
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
|
|
|
if [ ! -r $OLD ]; then
|
|
|
|
mv $NEW $OLD
|
|
|
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
|
|
|
rm $NEW
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2015-08-30 06:51:29 +03:00
|
|
|
CONFIGS="slpkg.conf repositories.conf blacklist slackware-mirrors custom-repositories \
|
2015-05-14 23:42:51 +03:00
|
|
|
slackware-changelogs-mirror"
|
2014-11-22 11:16:39 +02:00
|
|
|
for file in $CONFIGS; do
|
2014-12-18 08:15:07 +02:00
|
|
|
config etc/slpkg/${file}.new
|
2014-11-22 11:16:39 +02:00
|
|
|
done
|
2014-11-14 14:20:07 +02:00
|
|
|
|
2014-06-04 13:43:51 +03:00
|
|
|
if [ -x /usr/bin/update-desktop-database ]; then
|
|
|
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
|
|
|
fi
|