File tree Expand file tree Collapse file tree 15 files changed +280
-140
lines changed Expand file tree Collapse file tree 15 files changed +280
-140
lines changed Original file line number Diff line number Diff line change @@ -321,11 +321,16 @@ tools_available:
321
321
mupdf-tools :
322
322
disabled : []
323
323
check : |
324
- echo test > test.txt \
325
- && mutool create -o test.pdf test.txt \
326
- && file test.pdf | grep 'PDF document' \
327
- && rm test.txt \
328
- && rm test.pdf \
324
+ PHP_VERSION="$(php -v | grep ^PHP | awk '{print $2}' | grep -Eo '[0-9]\.[0-9]')" \
325
+ && if echo "${PHP_VERSION}" | grep -E '5\.2|5\.3|5\.4|5\.5'; then \
326
+ mutool 2>&1 | grep ^usage; \
327
+ else \
328
+ echo test > test.txt \
329
+ && mutool create -o test.pdf test.txt \
330
+ && file test.pdf | grep 'PDF document' \
331
+ && rm test.txt \
332
+ && rm test.pdf; \
333
+ fi \
329
334
all :
330
335
type : apt
331
336
package : mupdf-tools
Original file line number Diff line number Diff line change @@ -343,11 +343,16 @@ RUN set -eux \
343
343
344
344
# -------------------- (apt) mupdf-tools --------------------
345
345
RUN set -eux \
346
- && echo test > test.txt \
347
- && mutool create -o test.pdf test.txt \
348
- && file test.pdf | grep ' PDF document' \
349
- && rm test.txt \
350
- && rm test.pdf \
346
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
347
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
348
+ mutool 2>&1 | grep ^usage; \
349
+ else \
350
+ echo test > test.txt \
351
+ && mutool create -o test.pdf test.txt \
352
+ && file test.pdf | grep ' PDF document' \
353
+ && rm test.txt \
354
+ && rm test.pdf; \
355
+ fi \
351
356
\
352
357
&& true
353
358
@@ -616,11 +621,16 @@ RUN set -eux \
616
621
617
622
# -------------------- (apt) mupdf-tools --------------------
618
623
RUN set -eux \
619
- && echo test > test.txt \
620
- && mutool create -o test.pdf test.txt \
621
- && file test.pdf | grep ' PDF document' \
622
- && rm test.txt \
623
- && rm test.pdf \
624
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
625
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
626
+ mutool 2>&1 | grep ^usage; \
627
+ else \
628
+ echo test > test.txt \
629
+ && mutool create -o test.pdf test.txt \
630
+ && file test.pdf | grep ' PDF document' \
631
+ && rm test.txt \
632
+ && rm test.pdf; \
633
+ fi \
624
634
\
625
635
&& true
626
636
Original file line number Diff line number Diff line change @@ -377,11 +377,16 @@ RUN set -eux \
377
377
378
378
# -------------------- (apt) mupdf-tools --------------------
379
379
RUN set -eux \
380
- && echo test > test.txt \
381
- && mutool create -o test.pdf test.txt \
382
- && file test.pdf | grep ' PDF document' \
383
- && rm test.txt \
384
- && rm test.pdf \
380
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
381
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
382
+ mutool 2>&1 | grep ^usage; \
383
+ else \
384
+ echo test > test.txt \
385
+ && mutool create -o test.pdf test.txt \
386
+ && file test.pdf | grep ' PDF document' \
387
+ && rm test.txt \
388
+ && rm test.pdf; \
389
+ fi \
385
390
\
386
391
&& true
387
392
@@ -687,11 +692,16 @@ RUN set -eux \
687
692
688
693
# -------------------- (apt) mupdf-tools --------------------
689
694
RUN set -eux \
690
- && echo test > test.txt \
691
- && mutool create -o test.pdf test.txt \
692
- && file test.pdf | grep ' PDF document' \
693
- && rm test.txt \
694
- && rm test.pdf \
695
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
696
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
697
+ mutool 2>&1 | grep ^usage; \
698
+ else \
699
+ echo test > test.txt \
700
+ && mutool create -o test.pdf test.txt \
701
+ && file test.pdf | grep ' PDF document' \
702
+ && rm test.txt \
703
+ && rm test.pdf; \
704
+ fi \
695
705
\
696
706
&& true
697
707
Original file line number Diff line number Diff line change @@ -400,11 +400,16 @@ RUN set -eux \
400
400
401
401
# -------------------- (apt) mupdf-tools --------------------
402
402
RUN set -eux \
403
- && echo test > test.txt \
404
- && mutool create -o test.pdf test.txt \
405
- && file test.pdf | grep ' PDF document' \
406
- && rm test.txt \
407
- && rm test.pdf \
403
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
404
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
405
+ mutool 2>&1 | grep ^usage; \
406
+ else \
407
+ echo test > test.txt \
408
+ && mutool create -o test.pdf test.txt \
409
+ && file test.pdf | grep ' PDF document' \
410
+ && rm test.txt \
411
+ && rm test.pdf; \
412
+ fi \
408
413
\
409
414
&& true
410
415
@@ -725,11 +730,16 @@ RUN set -eux \
725
730
726
731
# -------------------- (apt) mupdf-tools --------------------
727
732
RUN set -eux \
728
- && echo test > test.txt \
729
- && mutool create -o test.pdf test.txt \
730
- && file test.pdf | grep ' PDF document' \
731
- && rm test.txt \
732
- && rm test.pdf \
733
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
734
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
735
+ mutool 2>&1 | grep ^usage; \
736
+ else \
737
+ echo test > test.txt \
738
+ && mutool create -o test.pdf test.txt \
739
+ && file test.pdf | grep ' PDF document' \
740
+ && rm test.txt \
741
+ && rm test.pdf; \
742
+ fi \
733
743
\
734
744
&& true
735
745
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416
416
417
417
# -------------------- (apt) mupdf-tools --------------------
418
418
RUN set -eux \
419
- && echo test > test.txt \
420
- && mutool create -o test.pdf test.txt \
421
- && file test.pdf | grep ' PDF document' \
422
- && rm test.txt \
423
- && rm test.pdf \
419
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
420
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
421
+ mutool 2>&1 | grep ^usage; \
422
+ else \
423
+ echo test > test.txt \
424
+ && mutool create -o test.pdf test.txt \
425
+ && file test.pdf | grep ' PDF document' \
426
+ && rm test.txt \
427
+ && rm test.pdf; \
428
+ fi \
424
429
\
425
430
&& true
426
431
@@ -790,11 +795,16 @@ RUN set -eux \
790
795
791
796
# -------------------- (apt) mupdf-tools --------------------
792
797
RUN set -eux \
793
- && echo test > test.txt \
794
- && mutool create -o test.pdf test.txt \
795
- && file test.pdf | grep ' PDF document' \
796
- && rm test.txt \
797
- && rm test.pdf \
798
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
799
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
800
+ mutool 2>&1 | grep ^usage; \
801
+ else \
802
+ echo test > test.txt \
803
+ && mutool create -o test.pdf test.txt \
804
+ && file test.pdf | grep ' PDF document' \
805
+ && rm test.txt \
806
+ && rm test.pdf; \
807
+ fi \
798
808
\
799
809
&& true
800
810
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416
416
417
417
# -------------------- (apt) mupdf-tools --------------------
418
418
RUN set -eux \
419
- && echo test > test.txt \
420
- && mutool create -o test.pdf test.txt \
421
- && file test.pdf | grep ' PDF document' \
422
- && rm test.txt \
423
- && rm test.pdf \
419
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
420
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
421
+ mutool 2>&1 | grep ^usage; \
422
+ else \
423
+ echo test > test.txt \
424
+ && mutool create -o test.pdf test.txt \
425
+ && file test.pdf | grep ' PDF document' \
426
+ && rm test.txt \
427
+ && rm test.pdf; \
428
+ fi \
424
429
\
425
430
&& true
426
431
@@ -790,11 +795,16 @@ RUN set -eux \
790
795
791
796
# -------------------- (apt) mupdf-tools --------------------
792
797
RUN set -eux \
793
- && echo test > test.txt \
794
- && mutool create -o test.pdf test.txt \
795
- && file test.pdf | grep ' PDF document' \
796
- && rm test.txt \
797
- && rm test.pdf \
798
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
799
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
800
+ mutool 2>&1 | grep ^usage; \
801
+ else \
802
+ echo test > test.txt \
803
+ && mutool create -o test.pdf test.txt \
804
+ && file test.pdf | grep ' PDF document' \
805
+ && rm test.txt \
806
+ && rm test.pdf; \
807
+ fi \
798
808
\
799
809
&& true
800
810
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416
416
417
417
# -------------------- (apt) mupdf-tools --------------------
418
418
RUN set -eux \
419
- && echo test > test.txt \
420
- && mutool create -o test.pdf test.txt \
421
- && file test.pdf | grep ' PDF document' \
422
- && rm test.txt \
423
- && rm test.pdf \
419
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
420
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
421
+ mutool 2>&1 | grep ^usage; \
422
+ else \
423
+ echo test > test.txt \
424
+ && mutool create -o test.pdf test.txt \
425
+ && file test.pdf | grep ' PDF document' \
426
+ && rm test.txt \
427
+ && rm test.pdf; \
428
+ fi \
424
429
\
425
430
&& true
426
431
@@ -790,11 +795,16 @@ RUN set -eux \
790
795
791
796
# -------------------- (apt) mupdf-tools --------------------
792
797
RUN set -eux \
793
- && echo test > test.txt \
794
- && mutool create -o test.pdf test.txt \
795
- && file test.pdf | grep ' PDF document' \
796
- && rm test.txt \
797
- && rm test.pdf \
798
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
799
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
800
+ mutool 2>&1 | grep ^usage; \
801
+ else \
802
+ echo test > test.txt \
803
+ && mutool create -o test.pdf test.txt \
804
+ && file test.pdf | grep ' PDF document' \
805
+ && rm test.txt \
806
+ && rm test.pdf; \
807
+ fi \
798
808
\
799
809
&& true
800
810
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416
416
417
417
# -------------------- (apt) mupdf-tools --------------------
418
418
RUN set -eux \
419
- && echo test > test.txt \
420
- && mutool create -o test.pdf test.txt \
421
- && file test.pdf | grep ' PDF document' \
422
- && rm test.txt \
423
- && rm test.pdf \
419
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
420
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
421
+ mutool 2>&1 | grep ^usage; \
422
+ else \
423
+ echo test > test.txt \
424
+ && mutool create -o test.pdf test.txt \
425
+ && file test.pdf | grep ' PDF document' \
426
+ && rm test.txt \
427
+ && rm test.pdf; \
428
+ fi \
424
429
\
425
430
&& true
426
431
@@ -790,11 +795,16 @@ RUN set -eux \
790
795
791
796
# -------------------- (apt) mupdf-tools --------------------
792
797
RUN set -eux \
793
- && echo test > test.txt \
794
- && mutool create -o test.pdf test.txt \
795
- && file test.pdf | grep ' PDF document' \
796
- && rm test.txt \
797
- && rm test.pdf \
798
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
799
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
800
+ mutool 2>&1 | grep ^usage; \
801
+ else \
802
+ echo test > test.txt \
803
+ && mutool create -o test.pdf test.txt \
804
+ && file test.pdf | grep ' PDF document' \
805
+ && rm test.txt \
806
+ && rm test.pdf; \
807
+ fi \
798
808
\
799
809
&& true
800
810
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416
416
417
417
# -------------------- (apt) mupdf-tools --------------------
418
418
RUN set -eux \
419
- && echo test > test.txt \
420
- && mutool create -o test.pdf test.txt \
421
- && file test.pdf | grep ' PDF document' \
422
- && rm test.txt \
423
- && rm test.pdf \
419
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
420
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
421
+ mutool 2>&1 | grep ^usage; \
422
+ else \
423
+ echo test > test.txt \
424
+ && mutool create -o test.pdf test.txt \
425
+ && file test.pdf | grep ' PDF document' \
426
+ && rm test.txt \
427
+ && rm test.pdf; \
428
+ fi \
424
429
\
425
430
&& true
426
431
@@ -790,11 +795,16 @@ RUN set -eux \
790
795
791
796
# -------------------- (apt) mupdf-tools --------------------
792
797
RUN set -eux \
793
- && echo test > test.txt \
794
- && mutool create -o test.pdf test.txt \
795
- && file test.pdf | grep ' PDF document' \
796
- && rm test.txt \
797
- && rm test.pdf \
798
+ && PHP_VERSION="$(php -v | grep ^PHP | awk ' {print $2}' | grep -Eo ' [0-9]\. [0-9]')" \
799
+ && if echo "${PHP_VERSION}" | grep -E ' 5\. 2|5\. 3|5\. 4|5\. 5'; then \
800
+ mutool 2>&1 | grep ^usage; \
801
+ else \
802
+ echo test > test.txt \
803
+ && mutool create -o test.pdf test.txt \
804
+ && file test.pdf | grep ' PDF document' \
805
+ && rm test.txt \
806
+ && rm test.pdf; \
807
+ fi \
798
808
\
799
809
&& true
800
810
You can’t perform that action at this time.
0 commit comments