diff options
author | markus <> | 2002-09-12 20:53:48 +0000 |
---|---|---|
committer | markus <> | 2002-09-12 20:53:48 +0000 |
commit | 82d2611e1bb67683df1bb201dcc2afbff4c76980 (patch) | |
tree | 2277e2b92c2ac738c5d0ce4cd39a372a8e2d01eb /src/lib/libcrypto | |
parent | 53eca489d6fe4a96e995db7570c6d4e12cc143d1 (diff) | |
parent | f8f1d7fabf136ce9810602509c477d2c42bf6d1c (diff) | |
download | openbsd-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/pod2mantest | 22 |
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 | ||
13 | IFS=: | 13 | IFS=: |
14 | if test "$OSTYPE" = "msdosdjgpp"; then IFS=";"; fi | 14 | if test "$OSTYPE" = "msdosdjgpp"; then IFS=";"; fi |
15 | try_without_dir=false | 15 | |
16 | try_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. |
17 | for dir in dummy${IFS}$PATH; do | 18 | for 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 | |||
46 | done | 54 | done |
47 | 55 | ||
48 | echo "No working pod2man found. Consider installing a new version." >&2 | 56 | echo "No working pod2man found. Consider installing a new version." >&2 |
49 | if [ "$1" = ignore ]; then | 57 | echo "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 | 58 | echo "$1 ../../util/pod2man.pl" |
51 | echo "../../util/pod2man.pl" | ||
52 | exit 0 | ||
53 | fi | ||
54 | exit 1 | ||