diff options
author | Ruben Schuller <ruben@orgizm.net> | 2014-12-19 13:00:09 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-12-19 13:03:08 +0700 |
commit | 32b6aa68a4b2a4baf6ece6dd1a631d96deb63bee (patch) | |
tree | 6efdf3019e736ec851686d2597d8331869cc2d53 /system/heirloom-doctools/doinst.sh | |
parent | 83e479476c2d717e285ca2e06a0f4117faf0f78b (diff) | |
download | slackbuilds-32b6aa68a4b2a4baf6ece6dd1a631d96deb63bee.tar.gz |
system/heirloom-doctools: Updated for version 141217.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/heirloom-doctools/doinst.sh')
-rw-r--r-- | system/heirloom-doctools/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/heirloom-doctools/doinst.sh b/system/heirloom-doctools/doinst.sh new file mode 100644 index 0000000000..6cb38e49e7 --- /dev/null +++ b/system/heirloom-doctools/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/heirloom.sh.new +config etc/profile.d/heirloom.csh.new |