1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 15:44:05 +02:00

schhist/sanitize-{profile,schem}: "dirname" logic was reversed

The substitution acted as "basename" instead of "dirname".
This commit is contained in:
Werner Almesberger 2012-05-24 00:21:36 -03:00
parent 9b1277886b
commit e943baf1c3
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ for (split(",", $ENV{"SCHHIST_ADDLIBS"})) {
($file, $out) = @ARGV;
&usage if $#ARGV > 1;
($dir = $file) =~ s|.*/||;
($dir = $file) =~ s|[^/]*$||;
$dir = "." if $dir eq "";
open(FILE, $file) || die "$file: $!";

View File

@ -22,7 +22,7 @@ sub usage
($file, $out) = @ARGV;
&usage if $#ARGV > 1;
($dir = $file) =~ s|.*/||;
($dir = $file) =~ s|[^/]*$||;
$dir = "." if $dir eq "";
open(FILE, $file) || die "$file: $!";