slackbuilds_ponce/development/quilt/doinst.sh
Andy Bailey abd1a5e0ab development/quilt: Updated for version 0.48.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2010-12-13 00:00:24 -06:00

13 lines
376 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...
}
config etc/quilt.quiltrc.new