diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2011-03-21 21:32:23 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-24 19:22:35 -0500 |
commit | 2bd47ab87eda16e1ed6c0bd377c0187fc8791fcc (patch) | |
tree | 8d3fb59fef739fce0d3878d1a270b38c5a196b14 /graphics/graphviz/doinst.sh | |
parent | 2dcab5ec2b3715c85d847d34f3a0657f56dd024f (diff) |
graphics/graphviz: More proper php support.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'graphics/graphviz/doinst.sh')
-rw-r--r-- | graphics/graphviz/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/graphviz/doinst.sh b/graphics/graphviz/doinst.sh index 24af708a0eac2..3eeed5b0f0e16 100644 --- a/graphics/graphviz/doinst.sh +++ b/graphics/graphviz/doinst.sh @@ -1,3 +1,18 @@ +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/php/graphviz.ini.new + # Configure plugins # (writes /usr/lib*/graphviz/config6 with available plugin information) chroot . /usr/bin/dot -c |