summaryrefslogtreecommitdiff
path: root/development/gnustep-make/doinst.sh
diff options
context:
space:
mode:
authorChristopher Walker <kris240376@gmail.com>2013-05-05 02:29:29 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2013-05-12 22:20:50 -0300
commit645655708e8f5a3e24a5017b5e6d020948289910 (patch)
tree437304ee1106bc9048bd5cdaee7c75980c996055 /development/gnustep-make/doinst.sh
parent68fef2d19d9b63ce0d4799e3cf5358a15c7958c3 (diff)
downloadslackbuilds-645655708e8f5a3e24a5017b5e6d020948289910.tar.gz
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.sh15
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 0000000000..60f3167d48
--- /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
+