mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-02 09:31:15 +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>
|
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
|
- Minor update to fix failing tests due to 3rd party perltidy changes
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,9 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use FindBin qw($Bin $Script);
|
use FindBin qw($Bin $Script);
|
||||||
|
use File::Basename;
|
||||||
|
|
||||||
chdir $Bin || die "Unable to chdir into $Bin: $!";
|
my $bindir="bin";
|
||||||
|
|
||||||
my $bindir="$Bin/../bin";
|
|
||||||
|
|
||||||
if(! -d $bindir) {
|
if(! -d $bindir) {
|
||||||
mkdir $bindir || die "Could not mkdir $bindir: $!";
|
mkdir $bindir || die "Could not mkdir $bindir: $!";
|
||||||
|
@ -16,8 +15,8 @@ if(! -d $bindir) {
|
||||||
print "Using perl binary: $^X",$/;
|
print "Using perl binary: $^X",$/;
|
||||||
print "Using perl version $^V",$/;
|
print "Using perl version $^V",$/;
|
||||||
|
|
||||||
for my $source (glob("*")) {
|
for my $dest (@ARGV) {
|
||||||
my $dest="$bindir/$source";
|
my $source=$Bin.'/'.basename($dest);
|
||||||
|
|
||||||
next if($source =~ m/$Script/);
|
next if($source =~ m/$Script/);
|
||||||
next if($source =~ m/\.x$/);
|
next if($source =~ m/\.x$/);
|
||||||
|
@ -33,10 +32,10 @@ for my $source (glob("*")) {
|
||||||
print $dfh $_ while(<$sfh>);
|
print $dfh $_ while(<$sfh>);
|
||||||
close($sfh);
|
close($sfh);
|
||||||
|
|
||||||
if($source ne "clusterssh_bash_completion.dist") {
|
if($source !~ m/clusterssh_bash_completion.dist/) {
|
||||||
print $dfh "\n\n__END__\n\n";
|
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($?);
|
die "Failed to generate pod" if($?);
|
||||||
print $dfh $pod;
|
print $dfh $pod;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue