diff options
author | Ebben Aries <e@dscp.org> | 2015-12-23 05:11:46 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-12-23 05:12:03 +0700 |
commit | 48a1e9f07006f2c72d167bffd8bcc113a704b123 (patch) | |
tree | e4876ed8f64b3eef31f2de183fddf631110987d6 /development/gnats/doinst.sh | |
parent | 1f2bc8d8af087a38308bc54f77845f758e5daac2 (diff) | |
download | slackbuilds-48a1e9f07006f2c72d167bffd8bcc113a704b123.tar.gz |
development/gnats: Added (set of tools for tracking bugs).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/gnats/doinst.sh')
-rw-r--r-- | development/gnats/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/development/gnats/doinst.sh b/development/gnats/doinst.sh new file mode 100644 index 0000000000..d7e52e513b --- /dev/null +++ b/development/gnats/doinst.sh @@ -0,0 +1,14 @@ +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/gnats/databases.new |