mirror of
https://github.com/duncs/clusterssh.git
synced 2025-04-20 16:59:06 +00:00
Fix for running 'make -j 3'
Prevent the same files being generated mutliple times when using 'make -j 4'. OpenSUSE bug: https://bugzilla.opensuse.org/show_bug.cgi?id=1083835 SourceForge support ticket 55
This commit is contained in:
parent
5b827fd163
commit
15d3e210cf
2 changed files with 9 additions and 7 deletions
3
Changes
3
Changes
|
@ -1,3 +1,6 @@
|
|||
4.13.2 0000-00-00 Duncan Ferguson <duncan_ferguson@user.sf.net>
|
||||
- Fix for running builds in parallel
|
||||
|
||||
4.13.1 2018-03-05 Duncan Ferguson <duncan_ferguson@user.sf.net>
|
||||
- Minor update to fix failing tests due to 3rd party perltidy changes
|
||||
|
||||
|
|
|
@ -4,10 +4,9 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
use FindBin qw($Bin $Script);
|
||||
use File::Basename;
|
||||
|
||||
chdir $Bin || die "Unable to chdir into $Bin: $!";
|
||||
|
||||
my $bindir="$Bin/../bin";
|
||||
my $bindir="bin";
|
||||
|
||||
if(! -d $bindir) {
|
||||
mkdir $bindir || die "Could not mkdir $bindir: $!";
|
||||
|
@ -16,8 +15,8 @@ if(! -d $bindir) {
|
|||
print "Using perl binary: $^X",$/;
|
||||
print "Using perl version $^V",$/;
|
||||
|
||||
for my $source (glob("*")) {
|
||||
my $dest="$bindir/$source";
|
||||
for my $dest (@ARGV) {
|
||||
my $source=$Bin.'/'.basename($dest);
|
||||
|
||||
next if($source =~ m/$Script/);
|
||||
next if($source =~ m/\.x$/);
|
||||
|
@ -33,10 +32,10 @@ for my $source (glob("*")) {
|
|||
print $dfh $_ while(<$sfh>);
|
||||
close($sfh);
|
||||
|
||||
if($source ne "clusterssh_bash_completion.dist") {
|
||||
if($source !~ m/clusterssh_bash_completion.dist/) {
|
||||
print $dfh "\n\n__END__\n\n";
|
||||
|
||||
my $pod= qx{ $^X ./$source --generate-pod };
|
||||
my $pod= qx{ $^X $source --generate-pod };
|
||||
die "Failed to generate pod" if($?);
|
||||
print $dfh $pod;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue