summaryrefslogtreecommitdiff
path: root/development/dart/doinst.sh
diff options
context:
space:
mode:
authorZhu Qun-Ying <zhu.qunying@gmail.com>2016-11-24 12:33:23 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-11-26 11:47:24 +0700
commit3e53abcd0f73e7f52b0e0bb65855ad221f2bfb09 (patch)
tree176e416078ed8116374a1f2d4d1ba540ed8c5f94 /development/dart/doinst.sh
parent4c05f42e6acc0bd797560fc4c5b15fba1c23f8bf (diff)
downloadslackbuilds-3e53abcd0f73e7f52b0e0bb65855ad221f2bfb09.tar.gz
development/dart: Added (An application programming language).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/dart/doinst.sh')
-rw-r--r--development/dart/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/development/dart/doinst.sh b/development/dart/doinst.sh
new file mode 100644
index 0000000000..ae2f300e84
--- /dev/null
+++ b/development/dart/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/profile.d/dart.csh.new
+config etc/profile.d/dart.sh.new