diff options
author | Andre Barboza <bmg.andre@gmail.com> | 2010-05-13 00:57:53 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:57:53 +0200 |
commit | 1ea71ccb78e1b5cb5b75f1c08553e1491e7be269 (patch) | |
tree | d9887da26ef5231dda50d8256f65c9f61d817f99 /development/fpc/doinst.sh | |
parent | 5be399b8c3701ddc854d4c9dad83a28912414c3f (diff) |
development/fpc: Added to 13.0 repository
Diffstat (limited to 'development/fpc/doinst.sh')
-rw-r--r-- | development/fpc/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/development/fpc/doinst.sh b/development/fpc/doinst.sh new file mode 100644 index 0000000000000..1b1904e6f49b9 --- /dev/null +++ b/development/fpc/doinst.sh @@ -0,0 +1,15 @@ +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/fpc.cfg.new + |