diff options
author | Christopher Walker <kris240376@gmail.com> | 2013-05-05 02:29:29 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2013-05-12 22:20:50 -0300 |
commit | 645655708e8f5a3e24a5017b5e6d020948289910 (patch) | |
tree | 437304ee1106bc9048bd5cdaee7c75980c996055 /development/gnustep-make/doinst.sh | |
parent | 68fef2d19d9b63ce0d4799e3cf5358a15c7958c3 (diff) |
development/gnustep-make: Added (GNUstep build/setup/packaging tool)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/gnustep-make/doinst.sh')
-rw-r--r-- | development/gnustep-make/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/development/gnustep-make/doinst.sh b/development/gnustep-make/doinst.sh new file mode 100644 index 000000000000..60f3167d48b6 --- /dev/null +++ b/development/gnustep-make/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/GNUstep/GNUstep.conf.new + |