2010-05-11 22:53:41 +02:00
|
|
|
config() {
|
|
|
|
NEW="$1"
|
|
|
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
|
|
|
if [ ! -r $OLD ]; then
|
|
|
|
mv $NEW $OLD
|
2010-06-17 10:54:05 +02:00
|
|
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
2010-05-11 22:53:41 +02:00
|
|
|
rm $NEW
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
config etc/tigrc.new
|