~ubuntu-branches/ubuntu/natty/foo2zjs/natty

« back to all changes in this revision

Viewing changes to foo2slx-wrapper.in

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2010-07-28 22:47:45 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100728224745-5gplbymqfr8588w7
Tags: 20100728-0ubuntu1
* New upstream release
   o Snapshot from Jul 28, 2010.
* debian/patches/91-wrapper-scripts-custom-pagesize-via-command-line.dpatch:
  Removed, fixed upstream.
* debian/patches/30-udev-rules.dpatch,
  debian/patches/60-getweb.in.dpatch: Updated to work with new foo2zjs
  source.
* debian/patches/60-getweb.in.dpatch, debian/patches/80-getweb.in.dpatch:
  merged 80-getweb.in.dpatch into 60-getweb.in.dpatch.
* debian/rules: Added "CUPS_SERVERBIN=..." to the "make install" command
  line.
* debian/foo2zjs.postinst: Migrate driver name "foo2zjs" to "foo2zjs-z1"
  and "foo2zjs-z2".

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#*
19
19
#* Authors: Rick Richardson <rick.richardson@comcast.net>
20
20
 
21
 
VERSION='$Id: foo2slx-wrapper.in,v 1.14 2009/05/11 17:35:55 rick Exp $'
 
21
VERSION='$Id: foo2slx-wrapper.in,v 1.16 2010/07/24 15:59:47 rick Exp $'
22
22
 
23
23
#
24
24
# Printer Notes:
133
133
#
134
134
# N.B. := operator used here, when :- would be better, because "ash"
135
135
# doesn't have :-
136
 
if gs.foo -v >/dev/null 2>&1; then
 
136
if eval gs.foo -v >/dev/null 2>&1; then
137
137
        GSBIN=${GSBIN:-gs.foo}
138
138
else
139
139
        GSBIN=${GSBIN:-gs}
340
340
}
341
341
 
342
342
case "$PAPER" in
 
343
Custom*x*)
 
344
                # Command line only
 
345
                XDIM=`echo "$PAPER" | sed -e "s/Custom.//" -e "s/x.*//" `
 
346
                YDIM=`echo "$PAPER" | sed -e "s/.*x//" `
 
347
                if [ "$XDIM" = "" -o "$YDIM" = "" ]; then
 
348
                    error "Custom page size '$PAPER' != 1-99999"
 
349
                fi
 
350
                if [ "$XDIM" -eq 0 -o "$YDIM" -eq 0 ]; then
 
351
                    error "Custom page size '$PAPER' != 1-99999"
 
352
                fi
 
353
                XDIM=`dc -e "$XDIM 1200* 72/p"`
 
354
                YDIM=`dc -e "$YDIM 600* 72/p"`
 
355
                PAPER=255;        paper=letter;
 
356
                MEDIA=4
 
357
                set_clipping 2 100     2 100
 
358
                ;;
343
359
Custom*)
344
360
                #%%BeginFeature: *CustomPageSize True
345
361
                #216