diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-06-28 23:45:11 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-06-28 23:45:11 +0000 |
commit | cdf6e0151411d887fef61245cb303ef190b29335 (patch) | |
tree | 678c2212e125e66e0a868773e2b4ec460794da4e /test/Available-Testprog | |
parent | de1311e820dc892f1a3c5c9ae70dbc56868030d8 (diff) | |
download | netpbm-mirror-cdf6e0151411d887fef61245cb303ef190b29335.tar.gz netpbm-mirror-cdf6e0151411d887fef61245cb303ef190b29335.tar.xz netpbm-mirror-cdf6e0151411d887fef61245cb303ef190b29335.zip |
Promote Advanced to Stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@3641 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/Available-Testprog')
-rwxr-xr-x | test/Available-Testprog | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/test/Available-Testprog b/test/Available-Testprog new file mode 100755 index 00000000..8176b57a --- /dev/null +++ b/test/Available-Testprog @@ -0,0 +1,75 @@ +#! /bin/bash + +# If make target is "check-install" assume that all programs are available +if [ "${CHECK_TYPE}" = "install" ]; then + exit 0 +fi + +# Special case: no arguments were passed to this program +# For all-in-place.test and legacy-names.test + +if [ $# = 0 ]; then + exit 0 +fi + +# Normal operation: Walk through the argument list and exit if an +# unavailable program is encountered. + +# See http://netpbm.sourceforge.net/prereq.html and the makefiles in +# each directory (for example converter/other/Makefile) for library +# requirements and relevant variables. + +for i in $@ + do + case $i in + fiascotopnm|\ + pnmtofiasco) + [ "${BUILD_FIASCO}" = "N" ] && exit 1 ;; + + jpeg2ktopam|\ + pamtojpeg2k) + [ "${JASPERLIB}" = "NONE" ] && exit 1 ;; + + jbigtopnm|\ + pnmtojbig) + [ "${JBIGLIB}" = "NONE" ] && exit 1 ;; + + jpegtopnm|\ + pnmtojpeg|\ + ppmtojpeg) + [ "${JPEGLIB}" = "NONE" ] && exit 1 ;; + + pamtotiff|\ + pnmtotiff|\ + pnmtotiffcmyk|\ + tifftopnm) + [ "${TIFFLIB}" = "NONE" -o \ + "${JPEGLIB}" = "NONE" -o \ + "${ZLIB}" = "NONE" ] && exit 1 ;; + + pnmtorle|\ + rletopnm) + [ "${URTLIB}" = "NONE" ] && exit 1 ;; + + pamx) + [ "${X11LIB}" = "NONE" ] && exit 1 ;; + + svgtopam) + [ "${XML2_LIBS}" = "NONE" ] && exit 1 ;; + + thinkjettopbm) + [ -z "${LEX}" ] && exit 1 ;; + + zlib) + [ "${ZLIB}" = "NONE" ] && exit 1 ;; + + esac +done + +# All checks passed. Exit with success status. +exit 0 + + +# TODO: We don't have a good method for testing whether PNGLIB is +# available for linking. +# Affected programs: pamtopng, pngtopam, pngtopnm, pnmtopng |