summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto
diff options
context:
space:
mode:
authormarkus <>2002-09-12 20:53:48 +0000
committermarkus <>2002-09-12 20:53:48 +0000
commit82d2611e1bb67683df1bb201dcc2afbff4c76980 (patch)
tree2277e2b92c2ac738c5d0ce4cd39a372a8e2d01eb /src/lib/libcrypto
parent53eca489d6fe4a96e995db7570c6d4e12cc143d1 (diff)
parentf8f1d7fabf136ce9810602509c477d2c42bf6d1c (diff)
downloadopenbsd-82d2611e1bb67683df1bb201dcc2afbff4c76980.tar.gz
openbsd-82d2611e1bb67683df1bb201dcc2afbff4c76980.tar.bz2
openbsd-82d2611e1bb67683df1bb201dcc2afbff4c76980.zip
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto')
-rw-r--r--src/lib/libcrypto/util/pod2mantest22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/lib/libcrypto/util/pod2mantest b/src/lib/libcrypto/util/pod2mantest
index e01c6192a7..412ca8d6d8 100644
--- a/src/lib/libcrypto/util/pod2mantest
+++ b/src/lib/libcrypto/util/pod2mantest
@@ -12,7 +12,8 @@
12 12
13IFS=: 13IFS=:
14if test "$OSTYPE" = "msdosdjgpp"; then IFS=";"; fi 14if test "$OSTYPE" = "msdosdjgpp"; then IFS=";"; fi
15try_without_dir=false 15
16try_without_dir=true
16# First we try "pod2man", then "$dir/pod2man" for each item in $PATH. 17# First we try "pod2man", then "$dir/pod2man" for each item in $PATH.
17for dir in dummy${IFS}$PATH; do 18for dir in dummy${IFS}$PATH; do
18 if [ "$try_without_dir" = true ]; then 19 if [ "$try_without_dir" = true ]; then
@@ -30,9 +31,16 @@ for dir in dummy${IFS}$PATH; do
30 if [ ! "$pod2man" = '' ]; then 31 if [ ! "$pod2man" = '' ]; then
31 failure=none 32 failure=none
32 33
34 if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | fgrep OpenSSL >/dev/null; then
35 :
36 else
37 failure=BasicTest
38 fi
33 39
34 if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null 2>&1; then 40 if [ "$failure" = none ]; then
35 failure=MultilineTest 41 if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null; then
42 failure=MultilineTest
43 fi
36 fi 44 fi
37 45
38 46
@@ -46,9 +54,5 @@ for dir in dummy${IFS}$PATH; do
46done 54done
47 55
48echo "No working pod2man found. Consider installing a new version." >&2 56echo "No working pod2man found. Consider installing a new version." >&2
49if [ "$1" = ignore ]; then 57echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2
50 echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2 58echo "$1 ../../util/pod2man.pl"
51 echo "../../util/pod2man.pl"
52 exit 0
53fi
54exit 1