diff options
author | Erik Hanson <erik@slackbuilds.org> | 2012-04-08 10:54:24 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-04-08 10:54:24 -0400 |
commit | 00fe1301c6a332f831e385844573679b03913a10 (patch) | |
tree | 59c48a46344c99e65af207736ed226c7122b4d68 /audio/xmp/doinst.sh | |
parent | b291fd0506aa875e999851d1b5ac983c51522b1e (diff) | |
download | slackbuilds-00fe1301c6a332f831e385844573679b03913a10.tar.gz |
audio/xmp: Added (Extended Module Player)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/xmp/doinst.sh')
-rw-r--r-- | audio/xmp/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/xmp/doinst.sh b/audio/xmp/doinst.sh new file mode 100644 index 0000000000..a0f6136448 --- /dev/null +++ b/audio/xmp/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/xmp/xmp.conf.new +config etc/xmp/modules.conf.new |