diff options
author | Zhu Qun-Ying <zhu.qunying@gmail.com> | 2019-12-28 09:41:00 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-12-28 09:41:00 +0700 |
commit | 3c38b507913140d3107fba44696815729a677b9d (patch) | |
tree | 9fa4ad1fd172a4495405d8ab793cbbfe7871f653 /development/dart-sdk/doinst.sh | |
parent | 009f9df54e821ddf6da06d76466f8e4e95cfef6a (diff) | |
download | slackbuilds-3c38b507913140d3107fba44696815729a677b9d.tar.gz |
development/dart-sdk: Added (An SDK for API).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/dart-sdk/doinst.sh')
-rw-r--r-- | development/dart-sdk/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/development/dart-sdk/doinst.sh b/development/dart-sdk/doinst.sh new file mode 100644 index 0000000000..15b642411d --- /dev/null +++ b/development/dart-sdk/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-sdk.csh.new +config etc/profile.d/dart-sdk.sh.new |