From cb2f74d1f0c49acee9e1c2609ecc23ebf136e177 Mon Sep 17 00:00:00 2001 From: Pablo Santamaria Date: Thu, 13 May 2010 00:58:55 +0200 Subject: libraries/libpaper: Added to 13.0 repository --- libraries/libpaper/doinst.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libraries/libpaper/doinst.sh (limited to 'libraries/libpaper/doinst.sh') diff --git a/libraries/libpaper/doinst.sh b/libraries/libpaper/doinst.sh new file mode 100644 index 0000000000..bf401250f7 --- /dev/null +++ b/libraries/libpaper/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/papersize.new + -- cgit v1.2.3-65-gdbad