summaryrefslogtreecommitdiff
path: root/development/grails/doinst.sh
diff options
context:
space:
mode:
authorDhabyX <slack.dhabyx@gmail.com>2010-05-13 00:57:54 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:57:54 +0200
commit15dbc485b096d4d796e9b10103be6befe4c8e1fc (patch)
tree26883030262706269d255c95b4ae06d27b9dcf25 /development/grails/doinst.sh
parent39229a5cfab0d4bd5e1d6382d4bd400c3b30ea44 (diff)
downloadslackbuilds-15dbc485b096d4d796e9b10103be6befe4c8e1fc.tar.gz
development/grails: Added to 13.0 repository
Diffstat (limited to 'development/grails/doinst.sh')
-rw-r--r--development/grails/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/development/grails/doinst.sh b/development/grails/doinst.sh
new file mode 100644
index 0000000000..01d8958fde
--- /dev/null
+++ b/development/grails/doinst.sh
@@ -0,0 +1,16 @@
+# Handle configuration files
+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...
+}
+# List of configuration files (they should end in .new)
+
+config etc/profile.d/grails.sh.new
+config etc/profile.d/grails.csh.new