| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Origin: https://bugs.ghostscript.com/show_bug.cgi?id=700317 |
| 4 |
# |
| 5 |
# targets correspond with comments in above issue tracker |
| 6 |
|
| 7 |
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) |
| 8 |
|
| 9 |
GS ?= gs |
| 10 |
|
| 11 |
all: c0 c4 c6 |
| 12 |
|
| 13 |
c0: $(ROOT_DIR)/c0.ps |
| 14 |
$(GS) -sDEVICE=ppmraw -dSAFER -f $< 2>&1 \ |
| 15 |
| grep --quiet --fixed-strings --line-regexp \ |
| 16 |
--regexp 'Error: /undefined in pdfdict' |
| 17 |
|
| 18 |
# skip c1 essentially equal to c0 just demonstrating different abuse |
| 19 |
|
| 20 |
c4: $(ROOT_DIR)/c4.ps |
| 21 |
$(GS) -dSAFER -sDEVICE=ppmraw -sOutputFile=/dev/null -f $< 2>&1 \ |
| 22 |
| grep --quiet --fixed-strings --line-regexp \ |
| 23 |
--regexp 'Error: /undefined in pdfdict' |
| 24 |
|
| 25 |
c6: $(ROOT_DIR)/c6.ps |
| 26 |
$(GS) -dSAFER -sDEVICE=ppmraw -sOutputFile=/dev/null -f $< 2>&1 \ |
| 27 |
| grep --quiet --fixed-strings --line-regexp \ |
| 28 |
--regexp 'Error: /undefined in pdfdict' |