This commit is contained in:
Bernhard M. Wiedemann 2018-03-13 01:35:55 +00:00 committed by GitHub
commit c11feb6392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,16 +16,15 @@ if(! -d $bindir) {
print "Using perl binary: $^X",$/;
print "Using perl version $^V",$/;
for my $source (glob("*")) {
my $dest="$bindir/$source";
my $dest = shift;
my $source = $dest;
$source =~ s{bin/}{};
$dest = "../$dest";
next if($source =~ m/$Script/);
next if($source =~ m/\.x$/);
print "Generating: $source",$/;
print "Generating: $dest from $source",$/;
if(-f $dest) {
chmod(0777, $dest) || die "Could not chmod $dest for removing: $!";
chmod(0755, $dest) || die "Could not chmod $dest for removing: $!";
}
open(my $sfh, '<', $source) || die "Could not open $source for reading: $!";
@ -44,4 +43,3 @@ for my $source (glob("*")) {
close($dfh);
chmod(0555, $dest) || die "Could not chmod $dest: $!";
}