head	1.1;
branch	1.1.1;
access;
symbols
	RELENG_8_4:1.1.1.3.0.42
	RELENG_9_1_0_RELEASE:1.1.1.3
	RELENG_9_1:1.1.1.3.0.40
	RELENG_9_1_BP:1.1.1.3
	RELENG_8_3_0_RELEASE:1.1.1.3
	RELENG_8_3:1.1.1.3.0.38
	RELENG_8_3_BP:1.1.1.3
	RELENG_9_0_0_RELEASE:1.1.1.3
	RELENG_9_0:1.1.1.3.0.36
	RELENG_9_0_BP:1.1.1.3
	RELENG_9:1.1.1.3.0.34
	RELENG_9_BP:1.1.1.3
	RELENG_7_4_0_RELEASE:1.1.1.3
	RELENG_8_2_0_RELEASE:1.1.1.3
	RELENG_7_4:1.1.1.3.0.32
	RELENG_7_4_BP:1.1.1.3
	RELENG_8_2:1.1.1.3.0.30
	RELENG_8_2_BP:1.1.1.3
	RELENG_8_1_0_RELEASE:1.1.1.3
	RELENG_8_1:1.1.1.3.0.28
	RELENG_8_1_BP:1.1.1.3
	RELENG_7_3_0_RELEASE:1.1.1.3
	RELENG_7_3:1.1.1.3.0.26
	RELENG_7_3_BP:1.1.1.3
	RELENG_8_0_0_RELEASE:1.1.1.3
	RELENG_8_0:1.1.1.3.0.24
	RELENG_8_0_BP:1.1.1.3
	RELENG_8:1.1.1.3.0.22
	RELENG_8_BP:1.1.1.3
	RELENG_7_2_0_RELEASE:1.1.1.3
	RELENG_7_2:1.1.1.3.0.20
	RELENG_7_2_BP:1.1.1.3
	RELENG_7_1_0_RELEASE:1.1.1.3
	RELENG_6_4_0_RELEASE:1.1.1.3
	RELENG_7_1:1.1.1.3.0.18
	RELENG_7_1_BP:1.1.1.3
	RELENG_6_4:1.1.1.3.0.16
	RELENG_6_4_BP:1.1.1.3
	RELENG_7_0_0_RELEASE:1.1.1.3
	RELENG_6_3_0_RELEASE:1.1.1.3
	RELENG_7_0:1.1.1.3.0.14
	RELENG_7_0_BP:1.1.1.3
	RELENG_6_3:1.1.1.3.0.12
	RELENG_6_3_BP:1.1.1.3
	RELENG_7:1.1.1.3.0.10
	RELENG_7_BP:1.1.1.3
	v0_9_8e:1.1.1.3
	RELENG_6_2_0_RELEASE:1.1.1.3
	RELENG_6_2:1.1.1.3.0.8
	RELENG_6_2_BP:1.1.1.3
	v0_9_8d:1.1.1.3
	v0_9_8b:1.1.1.3
	RELENG_5_5_0_RELEASE:1.1.1.2.6.1
	RELENG_5_5:1.1.1.2.6.1.0.4
	RELENG_5_5_BP:1.1.1.2.6.1
	RELENG_6_1_0_RELEASE:1.1.1.3
	RELENG_6_1:1.1.1.3.0.6
	RELENG_6_1_BP:1.1.1.3
	RELENG_6_0_0_RELEASE:1.1.1.3
	RELENG_6_0:1.1.1.3.0.4
	RELENG_6_0_BP:1.1.1.3
	RELENG_6:1.1.1.3.0.2
	RELENG_6_BP:1.1.1.3
	RELENG_5_4_0_RELEASE:1.1.1.2.6.1
	RELENG_5_4:1.1.1.2.6.1.0.2
	RELENG_5_4_BP:1.1.1.2.6.1
	v0_9_7e:1.1.1.3
	RELENG_4_11_0_RELEASE:1.1.1.1.2.2
	RELENG_4_11:1.1.1.1.2.2.0.8
	RELENG_4_11_BP:1.1.1.1.2.2
	RELENG_5_3_0_RELEASE:1.1.1.2
	RELENG_5_3:1.1.1.2.0.8
	RELENG_5_3_BP:1.1.1.2
	RELENG_5:1.1.1.2.0.6
	RELENG_5_BP:1.1.1.2
	RELENG_4_10_0_RELEASE:1.1.1.1.2.2
	RELENG_4_10:1.1.1.1.2.2.0.6
	RELENG_4_10_BP:1.1.1.1.2.2
	v0_9_7d:1.1.1.2
	RELENG_5_2_1_RELEASE:1.1.1.2
	RELENG_5_2_0_RELEASE:1.1.1.2
	RELENG_5_2:1.1.1.2.0.4
	RELENG_5_2_BP:1.1.1.2
	RELENG_4_9_0_RELEASE:1.1.1.1.2.2
	RELENG_4_9:1.1.1.1.2.2.0.4
	RELENG_4_9_BP:1.1.1.1.2.2
	v0_9_7c:1.1.1.2
	RELENG_5_1_0_RELEASE:1.1.1.2
	RELENG_5_1:1.1.1.2.0.2
	RELENG_5_1_BP:1.1.1.2
	RELENG_4_8_0_RELEASE:1.1.1.1.2.2
	RELENG_4_8:1.1.1.1.2.2.0.2
	RELENG_4_8_BP:1.1.1.1.2.2
	v0_9_7a:1.1.1.2
	v0_9_7:1.1.1.2
	RELENG_5_0_0_RELEASE:1.1.1.1
	RELENG_5_0:1.1.1.1.0.10
	RELENG_5_0_BP:1.1.1.1
	RELENG_4_7_0_RELEASE:1.1.1.1.2.1
	RELENG_4_7:1.1.1.1.2.1.0.2
	RELENG_4_7_BP:1.1.1.1.2.1
	RELENG_4_6_2_RELEASE:1.1.1.1.4.1
	v0_9_6g:1.1.1.1
	v0_9_6f:1.1.1.1
	RELENG_4_4:1.1.1.1.0.8
	RELENG_4_5:1.1.1.1.0.6
	RELENG_4_6:1.1.1.1.0.4
	RELENG_4:1.1.1.1.0.2
	v0_9_6e:1.1.1.1
	OPENSSL:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2002.07.30.13.38.06;	author nectar;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.07.30.13.38.06;	author nectar;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.4.1
	1.1.1.1.6.1
	1.1.1.1.8.1
	1.1.1.1.10.1;
next	1.1.1.2;

1.1.1.2
date	2003.01.28.21.43.16;	author markm;	state Exp;
branches
	1.1.1.2.6.1;
next	1.1.1.3;

1.1.1.3
date	2005.02.25.05.39.03;	author nectar;	state Exp;
branches
	1.1.1.3.42.1;
next	;

1.1.1.1.2.1
date	2002.07.30.22.06.09;	author nectar;	state Exp;
branches
	1.1.1.1.2.1.2.1;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2003.02.14.22.38.13;	author nectar;	state Exp;
branches;
next	;

1.1.1.1.2.1.2.1
date	2003.02.20.20.42.20;	author nectar;	state Exp;
branches;
next	;

1.1.1.1.4.1
date	2002.07.31.02.55.10;	author nectar;	state Exp;
branches;
next	1.1.1.1.4.2;

1.1.1.1.4.2
date	2003.02.21.16.33.01;	author nectar;	state Exp;
branches;
next	;

1.1.1.1.6.1
date	2002.07.31.14.05.33;	author nectar;	state Exp;
branches;
next	;

1.1.1.1.8.1
date	2002.07.31.16.41.26;	author nectar;	state Exp;
branches;
next	;

1.1.1.1.10.1
date	2003.02.20.17.14.22;	author nectar;	state Exp;
branches;
next	;

1.1.1.2.6.1
date	2005.03.01.16.47.37;	author nectar;	state Exp;
branches;
next	;

1.1.1.3.42.1
date	2005.02.25.05.39.03;	author svnexp;	state dead;
branches;
next	1.1.1.3.42.2;

1.1.1.3.42.2
date	2013.03.28.13.02.41;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/sh

# This script is used by test/Makefile.ssl to check whether a sane 'pod2man'
# is installed.
# ('make install' should not try to run 'pod2man' if it does not exist or if
# it is a broken 'pod2man' version that is known to cause trouble. if we find
# the system 'pod2man' to be broken, we use our own copy instead)
#
# In any case, output an appropriate command line for running (or not
# running) pod2man.


IFS=:
try_without_dir=false
# First we try "pod2man", then "$dir/pod2man" for each item in $PATH.
for dir in dummy:$PATH; do
    if [ "$try_without_dir" = true ]; then
      # first iteration
      pod2man=pod2man
      try_without_dir=false
    else
      # second and later iterations
      pod2man="$dir/pod2man"
      if [ ! -f "$pod2man" ]; then  # '-x' is not available on Ultrix
        pod2man=''
      fi
    fi

    if [ ! "$pod2man" = '' ]; then
        failure=none


	if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null 2>&1; then
	    failure=MultilineTest
	fi


        if [ "$failure" = none ]; then
            echo "$pod2man"
            exit 0
        fi

        echo "$pod2man does not work properly ('$failure' failed).  Looking for another pod2man ..." >&2
    fi
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
@


1.1.1.1
log
@Import of OpenSSL 0.9.6e.
@
text
@@


1.1.1.1.10.1
log
@Update to OpenSSL 0.9.6i.
@
text
@d14 1
a14 2

try_without_dir=true
a31 5
	if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | fgrep OpenSSL >/dev/null; then
	    :
	else
	    failure=BasicTest
	fi
d33 2
a34 4
	if [ "$failure" = none ]; then
	    if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null; then
	        failure=MultilineTest
	    fi
d48 6
a53 2
echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2
echo "$1 ../../util/pod2man.pl"
@


1.1.1.2
log
@Vendor import of OpenSSL release 0.9.7. This release includes
support for AES and OpenBSD's hardware crypto.
@
text
@d14 1
a14 3
if test "$OSTYPE" = "msdosdjgpp"; then IFS=";"; fi

try_without_dir=true
d16 1
a16 1
for dir in dummy${IFS}$PATH; do
a31 5
	if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | fgrep OpenSSL >/dev/null; then
	    :
	else
	    failure=BasicTest
	fi
d33 2
a34 4
	if [ "$failure" = none ]; then
	    if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null; then
	        failure=MultilineTest
	    fi
d48 6
a53 2
echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2
echo "$1 ../../util/pod2man.pl"
@


1.1.1.2.6.1
log
@MFC update OpenSSL 0.9.7d -> 0.9.7e.
@
text
@d3 1
a3 1
# This script is used by test/Makefile to check whether a sane 'pod2man'
@


1.1.1.3
log
@Vendor import of OpenSSL 0.9.7e.
@
text
@d3 1
a3 1
# This script is used by test/Makefile to check whether a sane 'pod2man'
@


1.1.1.3.42.1
log
@file pod2mantest was added on branch RELENG_8_4 on 2013-03-28 13:02:41 +0000
@
text
@d1 58
@


1.1.1.3.42.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 58
#!/bin/sh

# This script is used by test/Makefile to check whether a sane 'pod2man'
# is installed.
# ('make install' should not try to run 'pod2man' if it does not exist or if
# it is a broken 'pod2man' version that is known to cause trouble. if we find
# the system 'pod2man' to be broken, we use our own copy instead)
#
# In any case, output an appropriate command line for running (or not
# running) pod2man.


IFS=:
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${IFS}$PATH; do
    if [ "$try_without_dir" = true ]; then
      # first iteration
      pod2man=pod2man
      try_without_dir=false
    else
      # second and later iterations
      pod2man="$dir/pod2man"
      if [ ! -f "$pod2man" ]; then  # '-x' is not available on Ultrix
        pod2man=''
      fi
    fi

    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 [ "$failure" = none ]; then
	    if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null; then
	        failure=MultilineTest
	    fi
	fi


        if [ "$failure" = none ]; then
            echo "$pod2man"
            exit 0
        fi

        echo "$pod2man does not work properly ('$failure' failed).  Looking for another pod2man ..." >&2
    fi
done

echo "No working pod2man found.  Consider installing a new version." >&2
echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2
echo "$1 ../../util/pod2man.pl"
@


1.1.1.1.8.1
log
@MFC: OpenSSL 0.9.6e
@
text
@@


1.1.1.1.6.1
log
@MFC: OpenSSL 0.9.6e
@
text
@@


1.1.1.1.4.1
log
@MFC: OpenSSL 0.9.6e
@
text
@@


1.1.1.1.4.2
log
@Merge from RELENG_4_7: Update to OpenSSL 0.9.6i.
@
text
@d14 1
a14 2

try_without_dir=true
a31 5
	if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | fgrep OpenSSL >/dev/null; then
	    :
	else
	    failure=BasicTest
	fi
d33 2
a34 4
	if [ "$failure" = none ]; then
	    if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null; then
	        failure=MultilineTest
	    fi
d48 6
a53 2
echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2
echo "$1 ../../util/pod2man.pl"
@


1.1.1.1.2.1
log
@MFC: OpenSSL 0.9.6e
@
text
@@


1.1.1.1.2.1.2.1
log
@Merge from RELENG_5_0: Update to OpenSSL 0.9.6i.
@
text
@d14 1
a14 2

try_without_dir=true
a31 5
	if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | fgrep OpenSSL >/dev/null; then
	    :
	else
	    failure=BasicTest
	fi
d33 2
a34 4
	if [ "$failure" = none ]; then
	    if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null; then
	        failure=MultilineTest
	    fi
d48 6
a53 2
echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2
echo "$1 ../../util/pod2man.pl"
@


1.1.1.1.2.2
log
@MFC OpenSSL 0.9.7
@
text
@d14 1
a14 3
if test "$OSTYPE" = "msdosdjgpp"; then IFS=";"; fi

try_without_dir=true
d16 1
a16 1
for dir in dummy${IFS}$PATH; do
a31 5
	if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | fgrep OpenSSL >/dev/null; then
	    :
	else
	    failure=BasicTest
	fi
d33 2
a34 4
	if [ "$failure" = none ]; then
	    if "$pod2man" --section=1 --center=OpenSSL --release=dev pod2mantest.pod | grep '^MARKER - ' >/dev/null; then
	        failure=MultilineTest
	    fi
d48 6
a53 2
echo "As a workaround, we'll use a bundled old copy of pod2man.pl." >&2
echo "$1 ../../util/pod2man.pl"
@


