mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 22:53:44 +01:00
Make ./configure -q really silent
Our updateVersions script was being verbose, which might have made sense back when I wrote it, but doesn't any more. Final fix for bug 6599
This commit is contained in:
parent
0e0a167742
commit
cff3b8c93c
@ -4,6 +4,8 @@ $CONFIGURE_IN = './configure.ac';
|
|||||||
$ORCONFIG_H = './src/win32/orconfig.h';
|
$ORCONFIG_H = './src/win32/orconfig.h';
|
||||||
$TOR_NSI = './contrib/tor-mingw.nsi.in';
|
$TOR_NSI = './contrib/tor-mingw.nsi.in';
|
||||||
|
|
||||||
|
$quiet = 1;
|
||||||
|
|
||||||
sub demand {
|
sub demand {
|
||||||
my $fn = shift;
|
my $fn = shift;
|
||||||
die "Missing file $fn" unless (-f $fn);
|
die "Missing file $fn" unless (-f $fn);
|
||||||
@ -24,7 +26,7 @@ while (<F>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
die "No version found" unless $version;
|
die "No version found" unless $version;
|
||||||
print "Tor version is $version\n";
|
print "Tor version is $version\n" unless $quiet;
|
||||||
close F;
|
close F;
|
||||||
|
|
||||||
sub correctversion {
|
sub correctversion {
|
||||||
@ -36,7 +38,7 @@ sub correctversion {
|
|||||||
if ($s =~ /^$defchar(?:)define\s+VERSION\s+\"([^\"]+)\"/m) {
|
if ($s =~ /^$defchar(?:)define\s+VERSION\s+\"([^\"]+)\"/m) {
|
||||||
$oldver = $1;
|
$oldver = $1;
|
||||||
if ($oldver ne $version) {
|
if ($oldver ne $version) {
|
||||||
print "Version mismatch in $fn: It thinks that the version is $oldver. Fixing.\n";
|
print "Version mismatch in $fn: It thinks that the version is $oldver. I think it's $version. Fixing.\n";
|
||||||
$line = $defchar . "define VERSION \"$version\"";
|
$line = $defchar . "define VERSION \"$version\"";
|
||||||
open(F, ">$fn.bak");
|
open(F, ">$fn.bak");
|
||||||
print F $s;
|
print F $s;
|
||||||
@ -46,7 +48,7 @@ sub correctversion {
|
|||||||
print F $s;
|
print F $s;
|
||||||
close F;
|
close F;
|
||||||
} else {
|
} else {
|
||||||
print "$fn has the correct version. Good.\n";
|
print "$fn has the correct version. Good.\n" unless $quiet;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print "Didn't find a version line in $fn -- uh oh.\n";
|
print "Didn't find a version line in $fn -- uh oh.\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user