Fix t_dist_manifest when entering/leaving directory
git-svn-id: file://localhost/svn/verilator/trunk/verilator@1060 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
parent
66b8ec8935
commit
538d3d46f4
|
|
@ -341,8 +341,9 @@ TAGS: $(TAGFILES)
|
|||
# Test targets
|
||||
|
||||
dist-file-list:
|
||||
@echo "dist-file-list:"; # Scripts look for this
|
||||
@echo "begin-dist-file-list:"; # Scripts look for this
|
||||
@echo $(wildcard $(DISTFILES))
|
||||
@echo "end-dist-file-list:"; # Scripts look for this
|
||||
|
||||
######################################################################
|
||||
# Distributions
|
||||
|
|
|
|||
|
|
@ -10,11 +10,12 @@ if (!$::Driver) { use FindBin; exec("./driver.pl", @ARGV, $0); die; }
|
|||
my $root = "..";
|
||||
my $Debug;
|
||||
|
||||
###
|
||||
# Call once and ignore to rebuild any targets before we need the output
|
||||
### Must trim output before and after our file list
|
||||
`cd $root && make dist-file-list`;
|
||||
my $manifest_files = `cd $root && make dist-file-list`;
|
||||
$manifest_files =~ s!.*dist-file-list:!!sg;
|
||||
$manifest_files =~ s!.*begin-dist-file-list:!!sg;
|
||||
$manifest_files =~ s!end-dist-file-list:.*$!!sg;
|
||||
print "MF $manifest_files\n";
|
||||
my %files;
|
||||
foreach my $file (split /\s+/,$manifest_files) {
|
||||
next if $file eq '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue