1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Subject: SETUP: Use paperconf if available to suggest paper size (assumed)
Author: unknown (Matej Vela <vela@debian.org> or Pawel Wiecek <coven@debian.org>)
Date: 2002-03-18 (or earlier)
Forwarded: unknown
--- a/SETUP.in
+++ b/SETUP.in
@@ -1903,6 +1903,15 @@
METHOD=auto
MEDIA=plain
+# use paperconf(1) from libpaper if available
+if type paperconf >/dev/null 2>&1; then
+ PAPER=`paperconf`
+ case "$PAPER" in
+ a4|letter|a3) ;;
+ *) PAPER=letter ;;
+ esac
+fi
+
# read old settings from SETUP.cfg if present
[ -f "$CONF_DIR/SETUP.cfg" ] && . "$CONF_DIR/SETUP.cfg"
|