diff options
author | Dave Woodfall <dave@dawoodfall.net> | 2017-11-03 22:05:33 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-11-03 23:18:37 +0000 |
commit | 5636f8aece32c3c90f173fa80cb84dd24df06aea (patch) | |
tree | 65a52582cec875aa2865c515b07d60c651bafaa3 /system/mkslack/doinst.sh | |
parent | d7a1be93351cba0a2bec8683d904484c8c4c64ea (diff) |
system/mkslack: Added (a SlackBuild generation system).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/mkslack/doinst.sh')
-rw-r--r-- | system/mkslack/doinst.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/mkslack/doinst.sh b/system/mkslack/doinst.sh new file mode 100644 index 0000000000000..16b5983a834de --- /dev/null +++ b/system/mkslack/doinst.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +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/mkslack/mkslack.conf.new + |