slackbuilds_ponce/development/quilt/doinst.sh
Binh Nguyen f01eea0303 development/quilt: Updated for version 0.60 (+new maintainer)
This also reverted commit 1c8e35d0e5.
(The completion file /etc/bash_completion.d/quilt was not intended for
change by users).

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2012-11-20 12:35:22 -06:00

14 lines
377 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