diff options
| author | markus <> | 2002-09-05 22:45:21 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 22:45:21 +0000 |
| commit | 154dc21ed42de3fb550aa3c54823498ea9aa644a (patch) | |
| tree | 3df1e6f498b0d69e73af47546f15f51272e4f960 /src/lib/libc | |
| parent | e08fb7998d733407336e83a299f140b0c1d2fcd3 (diff) | |
| parent | 2a6851ef8adb0e84ff2515493d3704a13c6256b0 (diff) | |
| download | openbsd-154dc21ed42de3fb550aa3c54823498ea9aa644a.tar.gz openbsd-154dc21ed42de3fb550aa3c54823498ea9aa644a.tar.bz2 openbsd-154dc21ed42de3fb550aa3c54823498ea9aa644a.zip | |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/util/dirname.pl | 18 | ||||
| -rw-r--r-- | src/lib/libcrypto/util/pod2mantest | 7 |
2 files changed, 22 insertions, 3 deletions
diff --git a/src/lib/libcrypto/util/dirname.pl b/src/lib/libcrypto/util/dirname.pl new file mode 100644 index 0000000000..d7a66d96ac --- /dev/null +++ b/src/lib/libcrypto/util/dirname.pl | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | #!/usr/local/bin/perl | ||
| 2 | |||
| 3 | if ($#ARGV < 0) { | ||
| 4 | die "dirname.pl: too few arguments\n"; | ||
| 5 | } elsif ($#ARGV > 0) { | ||
| 6 | die "dirname.pl: too many arguments\n"; | ||
| 7 | } | ||
| 8 | |||
| 9 | my $d = $ARGV[0]; | ||
| 10 | |||
| 11 | if ($d =~ m|.*/.*|) { | ||
| 12 | $d =~ s|/[^/]*$||; | ||
| 13 | } else { | ||
| 14 | $d = "."; | ||
| 15 | } | ||
| 16 | |||
| 17 | print $d,"\n"; | ||
| 18 | exit(0); | ||
diff --git a/src/lib/libcrypto/util/pod2mantest b/src/lib/libcrypto/util/pod2mantest index 79aefafac0..e01c6192a7 100644 --- a/src/lib/libcrypto/util/pod2mantest +++ b/src/lib/libcrypto/util/pod2mantest | |||
| @@ -11,9 +11,10 @@ | |||
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | IFS=: | 13 | IFS=: |
| 14 | try_without_dir=true | 14 | if test "$OSTYPE" = "msdosdjgpp"; then IFS=";"; fi |
| 15 | try_without_dir=false | ||
| 15 | # First we try "pod2man", then "$dir/pod2man" for each item in $PATH. | 16 | # First we try "pod2man", then "$dir/pod2man" for each item in $PATH. |
| 16 | for dir in dummy:$PATH; do | 17 | for dir in dummy${IFS}$PATH; do |
| 17 | if [ "$try_without_dir" = true ]; then | 18 | if [ "$try_without_dir" = true ]; then |
| 18 | # first iteration | 19 | # first iteration |
| 19 | pod2man=pod2man | 20 | pod2man=pod2man |
| @@ -47,7 +48,7 @@ done | |||
| 47 | echo "No working pod2man found. Consider installing a new version." >&2 | 48 | echo "No working pod2man found. Consider installing a new version." >&2 |
| 48 | if [ "$1" = ignore ]; then | 49 | if [ "$1" = ignore ]; then |
| 49 | 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 |
| 50 | echo "util/pod2man.pl" | 51 | echo "../../util/pod2man.pl" |
| 51 | exit 0 | 52 | exit 0 |
| 52 | fi | 53 | fi |
| 53 | exit 1 | 54 | exit 1 |
