From 0185d8fd344933cd4e9acb2e687002601b579671 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 11 Mar 2001 21:51:31 +0000 Subject: New build procedure. svn path=/trunk/; revision=3234 --- makerelease | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/makerelease b/makerelease index bef7ae2f..f96f7bcf 100755 --- a/makerelease +++ b/makerelease @@ -7,6 +7,8 @@ $timezone = "-0500"; $diffs = 0; +$verbose = 0; +$null = ">/dev/null"; while ($i = shift @ARGV) { if ($i =~ /^(--diffs|-d)$/i) @@ -15,6 +17,13 @@ while ($i = shift @ARGV) next; } + if ($i =~ /^(--verbose|-v)$/i) + { + $verbose = 1; + $null = ""; + next; + } + die "Error: Unknown option: $i\n"; } @@ -48,18 +57,18 @@ if ($versions[0] eq $rcsid) { print "Building $version release, RCS ID $rcsid, previous RCS ID $oldid\n"; -print "Test-building the software...\n"; -if (system("su -c 'make >/dev/null' esr")) { +print "### Test-building the software...\n"; +if (system("su -c '(configure --disable-nls; make) $null' esr")) { die("Compilation failure\n"); } -print "Building the distribution...\n"; -if (system("su -c 'make dist >/dev/null' esr")) { +print "### Building the distribution...\n"; +if (system("su -c 'make dist $null' esr")) { die("Distribution-build failure\n"); } -print "Building the RPMs...\n"; -if (system("make rpm >/dev/null 2>/dev/null && chown esr *.rpm")) { +print "### Building the RPMs...\n"; +if (system("make rpm $null && chown esr *.rpm")) { die("RPM-build failure\n"); } -- cgit v1.2.3