diff options
author | markm <markm@FreeBSD.org> | 2003-01-28 21:43:22 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2003-01-28 21:43:22 +0000 |
commit | 33af127a88977242de6a52d20ca71404603fe057 (patch) | |
tree | 6dfbdb983a7349e31b6f7c1a4e639ddc3cfef82b /crypto/openssl/util/pod2mantest | |
parent | c659131c45791f8c0587c93c32b3cffb05b07e2f (diff) | |
parent | aad1d64cb5a8d9b503d9199642363dc1e92d2f9b (diff) | |
download | FreeBSD-src-33af127a88977242de6a52d20ca71404603fe057.zip FreeBSD-src-33af127a88977242de6a52d20ca71404603fe057.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r109998,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto/openssl/util/pod2mantest')
-rwxr-xr-x | crypto/openssl/util/pod2mantest | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/crypto/openssl/util/pod2mantest b/crypto/openssl/util/pod2mantest index 449ef14..412ca8d 100755 --- a/crypto/openssl/util/pod2mantest +++ b/crypto/openssl/util/pod2mantest @@ -11,9 +11,11 @@ IFS=: -try_without_dir=false +if test "$OSTYPE" = "msdosdjgpp"; then IFS=";"; fi + +try_without_dir=true # First we try "pod2man", then "$dir/pod2man" for each item in $PATH. -for dir in dummy:$PATH; do +for dir in dummy${IFS}$PATH; do if [ "$try_without_dir" = true ]; then # first iteration pod2man=pod2man @@ -29,9 +31,16 @@ for dir in dummy:$PATH; do if [ ! "$pod2man" = '' ]; then failure=none + if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | fgrep OpenSSL >/dev/null; then + : + else + failure=BasicTest + fi - if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null 2>&1; then - failure=MultilineTest + if [ "$failure" = none ]; then + if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null; then + failure=MultilineTest + fi fi @@ -45,9 +54,5 @@ for dir in dummy:$PATH; do done echo "No working pod2man found. Consider installing a new version." >&2 -if [ "$1" = ignore ]; then - echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2 - echo "../../util/pod2man.pl" - exit 0 -fi -exit 1 +echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2 +echo "$1 ../../util/pod2man.pl" |