slackbuilds_ponce/system/spman/doinst.sh
Vladimir MyRequiem 2061b4112f system/spman: Added (Slackware package manager).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2018-04-28 06:40:09 +07:00

15 lines
300 B
Bash

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
}
CONFIGS="blacklist repo-list spman.conf"
for file in $CONFIGS; do
config etc/spman/${file}.new
done