| 1 |
#!/usr/bin/perl |
#!/usr/bin/perl |
| 2 |
# Generate build deps line from comments in the control file and replace |
# Generate build deps line from comments in the control file and replace |
| 3 |
# the current build deps line in the control file with it. |
# the current Build-Depends-Indep line in the control file with it. |
| 4 |
|
|
| 5 |
my $control; |
my $control; |
| 6 |
if (-e "debian/control") { |
if (-e "debian/control") { |
| 28 |
my $builddeps=join(", ", @builddeps); |
my $builddeps=join(", ", @builddeps); |
| 29 |
open (OUT, ">$control.tmp") || die "write $control.tmp: $!"; |
open (OUT, ">$control.tmp") || die "write $control.tmp: $!"; |
| 30 |
foreach (@lines) { |
foreach (@lines) { |
| 31 |
s/^(Build-Depends:\s+)(.*)/$1$builddeps/; |
s/^(Build-Depends-Indep:\s+)(.*)/$1$builddeps/; |
| 32 |
print OUT || die "print: $!"; |
print OUT || die "print: $!"; |
| 33 |
} |
} |
| 34 |
close OUT || die "close: $!"; |
close OUT || die "close: $!"; |