File: setup-use-paperconf-if-available-to-suggest-paper-size-assumed.patch

package info (click to toggle)
apsfilter 7.2.6-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,356 kB
  • sloc: sh: 452; ansic: 236; perl: 175; makefile: 124
file content (23 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (3)
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"