This commit was manufactured by cvs2svn to create branch 'OpenSSL-engine-

0_9_6-stable'.
This commit is contained in:
cvs2svn 2002-06-05 14:11:01 +00:00
commit 72645b83bb

18
util/dirname.pl Normal file
View File

@ -0,0 +1,18 @@
#!/usr/local/bin/perl
if ($#ARGV < 0) {
die "dirname.pl: too few arguments\n";
} elsif ($#ARGV > 0) {
die "dirname.pl: too many arguments\n";
}
my $d = $ARGV[0];
if ($d =~ m|.*/.*|) {
$d =~ s|/[^/]*$||;
} else {
$d = ".";
}
print $d,"\n";
exit(0);