File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -321,11 +321,16 @@ tools_available:
321321 mupdf-tools :
322322 disabled : []
323323 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 \
329334 all :
330335 type : apt
331336 package : mupdf-tools
Original file line number Diff line number Diff line change @@ -343,11 +343,16 @@ RUN set -eux \
343343
344344# -------------------- (apt) mupdf-tools --------------------
345345RUN 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 \
351356 \
352357 && true
353358
@@ -616,11 +621,16 @@ RUN set -eux \
616621
617622# -------------------- (apt) mupdf-tools --------------------
618623RUN 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 \
624634 \
625635 && true
626636
Original file line number Diff line number Diff line change @@ -377,11 +377,16 @@ RUN set -eux \
377377
378378# -------------------- (apt) mupdf-tools --------------------
379379RUN 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 \
385390 \
386391 && true
387392
@@ -687,11 +692,16 @@ RUN set -eux \
687692
688693# -------------------- (apt) mupdf-tools --------------------
689694RUN 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 \
695705 \
696706 && true
697707
Original file line number Diff line number Diff line change @@ -400,11 +400,16 @@ RUN set -eux \
400400
401401# -------------------- (apt) mupdf-tools --------------------
402402RUN 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 \
408413 \
409414 && true
410415
@@ -725,11 +730,16 @@ RUN set -eux \
725730
726731# -------------------- (apt) mupdf-tools --------------------
727732RUN 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 \
733743 \
734744 && true
735745
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416416
417417# -------------------- (apt) mupdf-tools --------------------
418418RUN 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 \
424429 \
425430 && true
426431
@@ -790,11 +795,16 @@ RUN set -eux \
790795
791796# -------------------- (apt) mupdf-tools --------------------
792797RUN 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 \
798808 \
799809 && true
800810
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416416
417417# -------------------- (apt) mupdf-tools --------------------
418418RUN 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 \
424429 \
425430 && true
426431
@@ -790,11 +795,16 @@ RUN set -eux \
790795
791796# -------------------- (apt) mupdf-tools --------------------
792797RUN 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 \
798808 \
799809 && true
800810
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416416
417417# -------------------- (apt) mupdf-tools --------------------
418418RUN 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 \
424429 \
425430 && true
426431
@@ -790,11 +795,16 @@ RUN set -eux \
790795
791796# -------------------- (apt) mupdf-tools --------------------
792797RUN 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 \
798808 \
799809 && true
800810
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416416
417417# -------------------- (apt) mupdf-tools --------------------
418418RUN 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 \
424429 \
425430 && true
426431
@@ -790,11 +795,16 @@ RUN set -eux \
790795
791796# -------------------- (apt) mupdf-tools --------------------
792797RUN 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 \
798808 \
799809 && true
800810
Original file line number Diff line number Diff line change @@ -416,11 +416,16 @@ RUN set -eux \
416416
417417# -------------------- (apt) mupdf-tools --------------------
418418RUN 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 \
424429 \
425430 && true
426431
@@ -790,11 +795,16 @@ RUN set -eux \
790795
791796# -------------------- (apt) mupdf-tools --------------------
792797RUN 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 \
798808 \
799809 && true
800810
You can’t perform that action at this time.
0 commit comments