From bff1d0ce570cbbac28618ac491bcdf4323c517de Mon Sep 17 00:00:00 2001 From: Chess Griffin Date: Fri, 21 May 2010 23:45:38 -0400 Subject: Revert "system/conky: Removed (build failure)" This reverts commit 4e8bfcc04205d55df1e283e93243a163d7a288f2. Fix SlackBuild so conky builds on -current by removing the --enable-audacious=yes configure option; miscellaneous script cleanups. --- system/conky/doinst.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 system/conky/doinst.sh (limited to 'system/conky/doinst.sh') diff --git a/system/conky/doinst.sh b/system/conky/doinst.sh new file mode 100644 index 0000000000..78304645d3 --- /dev/null +++ b/system/conky/doinst.sh @@ -0,0 +1,14 @@ +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/conky/conky.conf.new -- cgit v1.2.3