diff options
author | Steven Vch <unstatik@staremax.com> | 2015-03-22 15:26:03 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-03-22 15:26:03 +0700 |
commit | 7f1778ce6fe0575a53faca720f167a9dd48cff5a (patch) | |
tree | 52de469cd040d9e5e10ed8ba7766f71e8e0d8100 /development/fsharp/doinst.sh | |
parent | fad8e2015dc976edf58574e15bccbe6cf8d8cec7 (diff) |
development/fsharp: Added (.Net language).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/fsharp/doinst.sh')
-rw-r--r-- | development/fsharp/doinst.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/development/fsharp/doinst.sh b/development/fsharp/doinst.sh new file mode 100644 index 000000000000..92eb273a899f --- /dev/null +++ b/development/fsharp/doinst.sh @@ -0,0 +1,12 @@ +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... +} |