summaryrefslogtreecommitdiff
path: root/libraries/libpaper/doinst.sh
diff options
context:
space:
mode:
authorPablo Santamaria <pablosantamaria@gmail.com>2010-05-13 00:58:55 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:58:55 +0200
commitcb2f74d1f0c49acee9e1c2609ecc23ebf136e177 (patch)
tree631bc07817dc7a5952c9a5cf073e648cd8a9ee4e /libraries/libpaper/doinst.sh
parente64bf2c89eff43cf83b04efba1038de03368ee13 (diff)
downloadslackbuilds-cb2f74d1f0c49acee9e1c2609ecc23ebf136e177.tar.gz
libraries/libpaper: Added to 13.0 repository
Diffstat (limited to 'libraries/libpaper/doinst.sh')
-rw-r--r--libraries/libpaper/doinst.sh14
1 files changed, 14 insertions, 0 deletions
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
+