From 15dbc485b096d4d796e9b10103be6befe4c8e1fc Mon Sep 17 00:00:00 2001 From: DhabyX Date: Thu, 13 May 2010 00:57:54 +0200 Subject: development/grails: Added to 13.0 repository --- development/grails/doinst.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 development/grails/doinst.sh (limited to 'development/grails/doinst.sh') 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 -- cgit v1.2.3-65-gdbad