From: Robin Sheat Date: Wed, 22 Jun 2011 06:00:24 +0000 (+1200) Subject: Bug 6722: [SIGNED-OFF] Cause build output to appear on the screen X-Git-Tag: v3.06.00~253 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=a57b692a60947569e57b26862c17d517bf461128;p=koha_gimpoz Bug 6722: [SIGNED-OFF] Cause build output to appear on the screen This allows the build information to not be suppressed when using build-git-snapshot. This makes seeing where problems are substantially easier. Signed-off-by: Magnus Enger Signed-off-by: Chris Cormack --- diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot index cd0545a68d..91552ff73c 100755 --- a/debian/build-git-snapshot +++ b/debian/build-git-snapshot @@ -58,6 +58,13 @@ sub sys_command_output { return map { chomp; $_ } <$command_output>; } +sub sys_command_output_screen { + my ($command) = @_; + + print "$command\n" if $debug; + system($command); +} + sub everything_is_committed { my $filter; for ($git_checks) { @@ -130,7 +137,7 @@ sub build_package { sys_command_output( qq{git archive --format=tar --prefix="koha-$newversion/" HEAD | gzip -9 > "../koha_$newversion.tar.gz"} ); my $pdebuildopts = $buildresult ? "--buildresult $buildresult" : ""; - sys_command_output( "pdebuild $pdebuildopts" ); + sys_command_output_screen( "pdebuild $pdebuildopts" ); } everything_is_committed() or die "cannot build: uncommited changes";