Revision c2ef67100cd0ca2321b5f1a437abb93fc7e11e37 authored by Matt Caswell on 03 December 2015, 15:00:17 UTC, committed by Matt Caswell on 03 December 2015, 15:00:17 UTC
Reviewed-by: Richard Levitte <levitte@openssl.org>
1 parent 35c8d0d
dirname.pl
#!/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);

Computing file changes ...