X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=debian%2Fbuild-git-snapshot;h=3f06ff2fa4d62b8901a7a353e5323c2f6d083b7a;hb=HEAD;hp=cd0545a68d6db88999973fe0e9a155a301b7bea4;hpb=7a6a7f0df5c52b16fc5b47339cfe482dd98904e9;p=koha.git diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot index cd0545a68d..3f06ff2fa4 100755 --- a/debian/build-git-snapshot +++ b/debian/build-git-snapshot @@ -30,7 +30,7 @@ use POSIX qw/strftime/; my $buildresult; my $distribution='squeeze-dev'; my $git_checks='all'; -my $version='3.5-1~git'; +my $version='3.13-1~git'; my $auto_version=1; my $need_help; my $debug; @@ -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) { @@ -101,7 +108,7 @@ Options: tracked files with untracked changes will cause an error), and 'none' (checking git status is skipped totally.) Default is 'all'. --version, -v - the version string for the resulting package. Default is '3.5-1~git'. + the version string for the resulting package. Default is '$version'. --(no)autoversion whether or not to use the date and git commit ID in the version value. Default is to include it. @@ -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";