mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
schhist/sanitize-{profile,schem}: "dirname" logic was reversed
The substitution acted as "basename" instead of "dirname".
This commit is contained in:
1 parent
9b1277886b
commit
e943baf1c3
2 files changed
+2
-2
No files matched your search
@@ -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: $!";
|
||||
|
||||
@@ -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: $!";
|
||||
|
||||
Reference in new issue
Block a user