diff options
author | Pablo Santamaria <pablosantamaria@gmail.com> | 2010-05-13 00:58:55 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:58:55 +0200 |
commit | cb2f74d1f0c49acee9e1c2609ecc23ebf136e177 (patch) | |
tree | 631bc07817dc7a5952c9a5cf073e648cd8a9ee4e /libraries/libpaper/doinst.sh | |
parent | e64bf2c89eff43cf83b04efba1038de03368ee13 (diff) |
libraries/libpaper: Added to 13.0 repository
Diffstat (limited to 'libraries/libpaper/doinst.sh')
-rw-r--r-- | libraries/libpaper/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libraries/libpaper/doinst.sh b/libraries/libpaper/doinst.sh new file mode 100644 index 0000000000000..bf401250f7b3e --- /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 + |