Changeset 1370
- Timestamp:
- Mar 14, 2016, 2:41:37 PM (9 years ago)
- Location:
- cups-filter/trunk
- Files:
-
- 1 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cups-filter/trunk/Makefile.am ¶
r1295 r1370 26 26 # ======== 27 27 pkgbackenddir = $(CUPS_SERVERBIN)/backend 28 pkgbackend_PROGRAMS = parallel serialbeh implicitclass28 pkgbackend_PROGRAMS = parallel beh implicitclass 29 29 30 30 check_PROGRAMS = test1284 … … 413 413 filter/pdftoopvp/pdftoopvp.cxx 414 414 pdftoopvp_CFLAGS = \ 415 $(POPPLER_CFLAGS) \ 415 416 $(CUPS_CFLAGS) \ 416 417 $(FREETYPE_CFLAGS) \ 417 418 $(FONTCONFIG_CFLAGS) \ 418 419 $(LIBPNG_CFLAGS) \ 419 $(POPPLER_CFLAGS) \420 420 -I$(srcdir)/filter/pdftoopvp/oprs \ 421 421 -I$(srcdir)/filter/pdftoopvp/opvp … … 532 532 EXTRA_bannertopdf_SOURCES = filter/getline.c 533 533 bannertopdf_CFLAGS = \ 534 $(POPPLER_CFLAGS) \ 534 535 $(CUPS_CFLAGS) \ 535 536 $(LIBJPEG_CFLAGS) \ 536 537 $(LIBPNG_CFLAGS) \ 537 $(POPPLER_CFLAGS) \538 538 $(TIFF_CFLAGS) \ 539 539 $(FONTCONFIG_CFLAGS) \ … … 667 667 filter/PDFError.h 668 668 pdftoijs_CFLAGS = \ 669 $( CUPS_CFLAGS) \670 $( IJS_CFLAGS) \671 $( POPPLER_CFLAGS)669 $(POPPLER_CFLAGS) \ 670 $(CUPS_CFLAGS) \ 671 $(IJS_CFLAGS) 672 672 pdftoijs_CXXFLAGS = $(pdftoijs_CFLAGS) 673 673 pdftoijs_LDADD = \ … … 698 698 filter/PDFError.h 699 699 pdftoraster_CFLAGS = \ 700 $(POPPLER_CFLAGS) \ 700 701 $(CUPS_CFLAGS) \ 701 702 $(LCMS_CFLAGS) \ 702 703 $(LIBJPEG_CFLAGS) \ 703 704 $(LIBPNG_CFLAGS) \ 704 $(POPPLER_CFLAGS) \705 705 $(TIFF_CFLAGS) \ 706 706 -I$(srcdir)/cupsfilters/ … … 803 803 utils/org.cups.cupsd.Notifier.xml 804 804 805 if BUILD_DBUS 805 806 sbin_PROGRAMS = \ 806 807 cups-browsed 808 endif 807 809 cups_browsed_SOURCES = \ 808 810 utils/cups-browsed.c … … 836 838 $(man_MANS) \ 837 839 utils/org.cups.cupsd.Notifier.xml 840 if BUILD_DBUS 838 841 BUILT_SOURCES = $(cups_notifier_sources) 842 endif 839 843 CLEANFILES = $(BUILT_SOURCES) 840 844 -
TabularUnified cups-filter/trunk/configure.ac ¶
r1295 r1370 333 333 fi 334 334 335 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2. 30.2])335 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.25.15]) 336 336 AC_SUBST(GLIB_CFLAGS) 337 337 AC_SUBST(GLIB_LIBS) -
TabularUnified cups-filter/trunk/filter/bannertopdf.c ¶
r1295 r1370 514 514 515 515 pdf_write(doc, stdout); 516 #ifdef __OS2__ 517 fflush(stdout); 518 #endif 516 519 free(buf); 517 520 pdf_free(doc); -
cups-filter/trunk/filter/foomatic-rip ¶
-
Property svn:ignore
set to
foomatic-rip.1
-
Property svn:ignore
set to
-
TabularUnified cups-filter/trunk/filter/foomatic-rip/process.c ¶
r1295 r1370 31 31 #include <signal.h> 32 32 33 #ifdef __OS2__ 34 #include <sys/socket.h> 35 #define pipe(A) socketpair(AF_UNIX, SOCK_STREAM,0, A) 36 #endif 37 33 38 int kidgeneration = 0; 34 39 -
TabularUnified cups-filter/trunk/filter/gstopxl ¶
r1295 r1370 46 46 47 47 resolution= 48 eval "$(printf "%s" "$5" | sed -n Ee 's/.*(^|[[:space:]])(printer-resolution|Resolution)=([0-9.]+(x[0-9.]+)?).*/resolution="${resolution:-\3}"/pi')"49 if test -e "$PPD"; then 50 eval "$(sed -n Ee 's/^\*DefaultResolution:[[:space:]]+([0-9.]+(x[0-9.]+)?).*/resolution="${resolution:-\1}"/p' "$PPD")"48 eval "$(printf "%s" "$5" | sed -nre 's/.*(^|[[:space:]])(printer-resolution|Resolution)=([0-9.]+(x[0-9.]+)?).*/resolution="${resolution:-\3}"/pi')" 49 if test -e "$PPD"; then 50 eval "$(sed -nre 's/^\*DefaultResolution:[[:space:]]+([0-9.]+(x[0-9.]+)?).*/resolution="${resolution:-\1}"/p' "$PPD")" 51 51 fi 52 52 echo "DEBUG: Resolution: $resolution" >&2 … … 56 56 57 57 pagesize= 58 eval "$(printf "%s" "$5" | sed -n Ee 's/.*(^|[[:space:]])(media|PageSize)=([^[:space:]]+).*/pagesize="${pagesize:-\3}"/pi')"59 if test -e "$PPD"; then 60 eval "$(sed -n Ee 's/^\*DefaultPageSize:[[:space:]]+([^[:space:]]+).*/pagesize="${pagesize:-\1}"/p' "$PPD")"58 eval "$(printf "%s" "$5" | sed -nre 's/.*(^|[[:space:]])(media|PageSize)=([^[:space:]]+).*/pagesize="${pagesize:-\3}"/pi')" 59 if test -e "$PPD"; then 60 eval "$(sed -nre 's/^\*DefaultPageSize:[[:space:]]+([^[:space:]]+).*/pagesize="${pagesize:-\1}"/p' "$PPD")" 61 61 fi 62 62 echo "DEBUG: Page size: $pagesize" >&2 … … 64 64 height= 65 65 if test -n "$pagesize" && test -e "$PPD"; then 66 eval "$(sed -n Ee 's|^\*PaperDimension[[:space:]]+'"$pagesize"'/[^:]+:[[:space:]]+"([^[:space:]]+)[[:space:]]+([^[:space:]]+)".*|width="\1"; height="\2"|p' "$PPD")"66 eval "$(sed -nre 's|^\*PaperDimension[[:space:]]+'"$pagesize"'/[^:]+:[[:space:]]+"([^[:space:]]+)[[:space:]]+([^[:space:]]+)".*|width="\1"; height="\2"|p' "$PPD")" 67 67 fi 68 68 echo "DEBUG: Width: $width, height: $height" >&2 … … 79 79 tr_y= 80 80 if test -n "$pagesize" && test -e "$PPD"; then 81 eval "$(sed -n Ee 's|^\*ImageableArea[[:space:]]+'"$pagesize"'/[^:]+:[[:space:]]+"([^[:space:]]+)[[:space:]]+([^[:space:]]+)[[:space:]]+([^[:space:]]+)[[:space:]]+([^[:space:]]+)".*|bl_x="\1"; bl_y="\2"; tr_x="\3"; tr_y="\4"|p' "$PPD")"81 eval "$(sed -nre 's|^\*ImageableArea[[:space:]]+'"$pagesize"'/[^:]+:[[:space:]]+"([^[:space:]]+)[[:space:]]+([^[:space:]]+)[[:space:]]+([^[:space:]]+)[[:space:]]+([^[:space:]]+)".*|bl_x="\1"; bl_y="\2"; tr_x="\3"; tr_y="\4"|p' "$PPD")" 82 82 fi 83 83 echo "DEBUG: Absolute margins: $bl_x, $bl_y, $tr_x, $tr_y" >&2 … … 101 101 102 102 inputslot= 103 eval "$(printf "%s" "$5" | sed -n Ee 's/.*(^|[[:space:]])(media-position|MediaPosition|media-source|MediaSource|InputSlot)=([^[:space:]]+).*/inputslot="${inputslot:-\3}"/pi')"104 if test -e "$PPD"; then 105 eval "$(sed -n Ee 's/^\*DefaultInputSlot:[[:space:]]+([^[:space:]]+).*/inputslot="${inputslot:-\1}"/p' "$PPD")"103 eval "$(printf "%s" "$5" | sed -nre 's/.*(^|[[:space:]])(media-position|MediaPosition|media-source|MediaSource|InputSlot)=([^[:space:]]+).*/inputslot="${inputslot:-\3}"/pi')" 104 if test -e "$PPD"; then 105 eval "$(sed -nre 's/^\*DefaultInputSlot:[[:space:]]+([^[:space:]]+).*/inputslot="${inputslot:-\1}"/p' "$PPD")" 106 106 fi 107 107 echo "DEBUG: InputSlot: $inputslot" >&2 108 108 inputslot_val= 109 109 if test -n "$inputslot" && test -e "$PPD"; then 110 eval "$(sed -n Ee 's|^\*InputSlot[[:space:]]+'"$inputslot"'/[^:]+:[[:space:]]+"[[:space:]]*<[[:space:]]*<[[:space:]]*/MediaPosition[[:space:]]*([0-9]+)[[:space:]]*>[[:space:]]*>[[:space:]]*setpagedevice[[:space:]]*".*|inputslot_val="\1"|p' "$PPD")"110 eval "$(sed -nre 's|^\*InputSlot[[:space:]]+'"$inputslot"'/[^:]+:[[:space:]]+"[[:space:]]*<[[:space:]]*<[[:space:]]*/MediaPosition[[:space:]]*([0-9]+)[[:space:]]*>[[:space:]]*>[[:space:]]*setpagedevice[[:space:]]*".*|inputslot_val="\1"|p' "$PPD")" 111 111 else 112 112 if echo "$inputslot" | grep -qiE 'Default'; then … … 132 132 133 133 colormodel= 134 eval "$(printf "%s" "$5" | sed -n Ee 's/.*(^|[[:space:]])(pwg-raster-document-type|PwgRasterDocumentType|print-color-mode|PrintColorMode|color-space|ColorSpace|color-model|ColorModel)=([^[:space:]]+).*/colormodel="${colormodel:-\3}"/pi')"135 if test -e "$PPD"; then 136 eval "$(sed -n Ee 's/^\*DefaultColorModel:[[:space:]]+([^[:space:]]+).*/colormodel="${colormodel:-\1}"/p' "$PPD")"134 eval "$(printf "%s" "$5" | sed -nre 's/.*(^|[[:space:]])(pwg-raster-document-type|PwgRasterDocumentType|print-color-mode|PrintColorMode|color-space|ColorSpace|color-model|ColorModel)=([^[:space:]]+).*/colormodel="${colormodel:-\3}"/pi')" 135 if test -e "$PPD"; then 136 eval "$(sed -nre 's/^\*DefaultColorModel:[[:space:]]+([^[:space:]]+).*/colormodel="${colormodel:-\1}"/p' "$PPD")" 137 137 fi 138 138 echo "DEBUG: ColorModel: $colormodel" >&2 … … 142 142 colormodel_val= 143 143 if test -n "$colormodel" && test -e "$PPD"; then 144 eval "$(sed -n Ee 's|^\*ColorModel[[:space:]]+'"$colormodel"'/[^:]+:[[:space:]]+"[[:space:]]*<[[:space:]]*<[[:space:]]*/BitsPerPixel[[:space:]]*([0-9]*)[[:space:]]*>[[:space:]]*>[[:space:]]*setpagedevice[[:space:]]*".*|colormodel_val="\1"|p' "$PPD")"144 eval "$(sed -nre 's|^\*ColorModel[[:space:]]+'"$colormodel"'/[^:]+:[[:space:]]+"[[:space:]]*<[[:space:]]*<[[:space:]]*/BitsPerPixel[[:space:]]*([0-9]*)[[:space:]]*>[[:space:]]*>[[:space:]]*setpagedevice[[:space:]]*".*|colormodel_val="\1"|p' "$PPD")" 145 145 fi 146 146 echo "DEBUG: Value for BitsPerPixel: $colormodel_val" >&2 … … 151 151 duplex= 152 152 tumble= 153 eval "$(printf "%s" "$5" | sed -n Ee 's/.*(^|[[:space:]])(Duplex|sides)=([^[:space:]]+).*/duplex="${duplex:-\3}"/pi')"154 eval "$(printf "%s" "$5" | sed -n Ee 's/.*(^|[[:space:]])(Tumble)=([^[:space:]]+).*/tumble="${tumble:-\3}"/pi')"155 if test -e "$PPD"; then 156 eval "$(sed -n Ee 's/^\*DefaultDuplex:[[:space:]]+([^[:space:]]+).*/duplex="${duplex:-\1}"/p' "$PPD")"153 eval "$(printf "%s" "$5" | sed -nre 's/.*(^|[[:space:]])(Duplex|sides)=([^[:space:]]+).*/duplex="${duplex:-\3}"/pi')" 154 eval "$(printf "%s" "$5" | sed -nre 's/.*(^|[[:space:]])(Tumble)=([^[:space:]]+).*/tumble="${tumble:-\3}"/pi')" 155 if test -e "$PPD"; then 156 eval "$(sed -nre 's/^\*DefaultDuplex:[[:space:]]+([^[:space:]]+).*/duplex="${duplex:-\1}"/p' "$PPD")" 157 157 fi 158 158 echo "DEBUG: Duplex: $duplex" >&2 … … 161 161 tumble_val= 162 162 if test -n "$duplex" && test -e "$PPD"; then 163 eval "$(sed -n Ee 's|^\*Duplex[[:space:]]+'"$duplex"'/[^:]+:[[:space:]]+"[[:space:]]*<[[:space:]]*<[[:space:]]*/Duplex[[:space:]]*([^[:space:]]*)[[:space:]]*(/Tumble[[:space:]]*([^[:space:]]*)[[:space:]]*)?>[[:space:]]*>[[:space:]]*setpagedevice[[:space:]]*".*|duplex_val="\1"; tumble_val="\3"|p' "$PPD")"163 eval "$(sed -nre 's|^\*Duplex[[:space:]]+'"$duplex"'/[^:]+:[[:space:]]+"[[:space:]]*<[[:space:]]*<[[:space:]]*/Duplex[[:space:]]*([^[:space:]]*)[[:space:]]*(/Tumble[[:space:]]*([^[:space:]]*)[[:space:]]*)?>[[:space:]]*>[[:space:]]*setpagedevice[[:space:]]*".*|duplex_val="\1"; tumble_val="\3"|p' "$PPD")" 164 164 else 165 165 if echo "$duplex" | grep -qiE 'None|Off|False|No|One'; then … … 209 209 cat >"$ifile" 210 210 211 echo INFO: Starting GPL Ghostscript `/ usr/bin/gs--version`... 1>&2212 echo DEBUG: Running / usr/bin/gs$gsopts $ppd_opts -sOUTPUTFILE="%stdout" -c "$ps_code" -f "$ifile" 1>&2211 echo INFO: Starting GPL Ghostscript `/@unixroot/usr/bin/gs.exe --version`... 1>&2 212 echo DEBUG: Running /@unixroot/usr/bin/gs.exe $gsopts $ppd_opts -sOUTPUTFILE="%stdout" -c "$ps_code" -f "$ifile" 1>&2 213 213 214 214 # Now run Ghostscript... 215 / usr/bin/gs$gsopts $ppd_opts -sOUTPUTFILE="%stdout" -c "$ps_code" -f "$ifile"216 217 # 218 # 215 /@unixroot/usr/bin/gs.exe $gsopts $ppd_opts -sOUTPUTFILE="%stdout" -c "$ps_code" -f "$ifile" 216 217 # 218 # -
TabularUnified cups-filter/trunk/filter/gstoraster.c ¶
r1295 r1370 56 56 #ifndef CUPSDATA 57 57 #define CUPSDATA "/usr/share/cups" 58 #endif 59 60 #ifdef __OS2__ 61 #define pipe(A) socketpair(AF_UNIX, SOCK_STREAM,0, A) 58 62 #endif 59 63 -
TabularUnified cups-filter/trunk/filter/imagetopdf.c ¶
r1295 r1370 1666 1666 #endif 1667 1667 1668 #ifdef __OS2__ 1669 fflush(stdout); 1670 #endif 1668 1671 cupsImageClose(img); 1669 1672 ppdClose(ppd); -
TabularUnified cups-filter/trunk/filter/imagetoraster.c ¶
r1295 r1370 126 126 static int raster_cb(cups_page_header2_t *header, int preferred_bits); 127 127 128 #ifdef __OS2__ 129 #define pipe(A) socketpair(AF_UNIX, SOCK_STREAM,0, A) 130 #endif 128 131 129 132 /* -
TabularUnified cups-filter/trunk/filter/pdftops.c ¶
r1295 r1370 37 37 38 38 #define MAX_CHECK_COMMENT_LINES 20 39 40 #ifdef __OS2__ 41 #define pipe(A) socketpair(AF_UNIX, SOCK_STREAM,0, A) 42 #endif 39 43 40 44 /* … … 1000 1004 while ((bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0) 1001 1005 fwrite(buffer, 1, bytes, stdout); 1006 #ifdef __OS2__ 1007 fflush(stdout); 1008 #endif 1002 1009 } 1003 1010 else … … 1271 1278 while ((bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0) 1272 1279 fwrite(buffer, 1, bytes, stdout); 1280 #ifdef __OS2__ 1281 fflush(stdout); 1282 #endif 1273 1283 } 1274 1284 } -
TabularUnified cups-filter/trunk/filter/rastertoescpx.c ¶
r1295 r1370 34 34 #include <ctype.h> 35 35 36 #ifdef __OS2__ 37 #include <sys/fcntl.h> 38 #endif 36 39 37 40 /* -
TabularUnified cups-filter/trunk/filter/rastertopclx.c ¶
r1295 r1370 32 32 #include <signal.h> 33 33 34 #ifdef __OS2__ 35 #include <sys/fcntl.h> 36 #endif 34 37 35 38 /* -
TabularUnified cups-filter/trunk/filter/sys5ippprinter.c ¶
r1295 r1370 42 42 43 43 #define MAX_CHECK_COMMENT_LINES 20 44 45 #ifdef __OS2__ 46 #define pipe(A) socketpair(AF_UNIX, SOCK_STREAM,0, A) 47 #endif 44 48 45 49 /*
Note:
See TracChangeset
for help on using the changeset viewer.