projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 5409 - Call number is not show on Opac search result page.
[koha.git]
/
debian
/
build-git-snapshot
diff --git
a/debian/build-git-snapshot
b/debian/build-git-snapshot
index
295b5fa
..
b05df0d
100755
(executable)
--- 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 $buildresult;
my $distribution='squeeze-dev';
my $git_checks='all';
-my $version='3.
5
-1~git';
+my $version='3.
9
-1~git';
my $auto_version=1;
my $need_help;
my $debug;
my $auto_version=1;
my $need_help;
my $debug;
@@
-52,9
+52,17
@@
sub sys_command_output {
my ($command) = @_;
print "$command\n" if $debug;
my ($command) = @_;
print "$command\n" if $debug;
- open COMMAND, "$command |"
+ my $command_output;
+ open($command_output, "-|", "$command ")
or die qq{Cannot execute "$command": $!"};
or die qq{Cannot execute "$command": $!"};
- return map { chomp; $_ } <COMMAND>;
+ return map { chomp; $_ } <$command_output>;
+}
+
+sub sys_command_output_screen {
+ my ($command) = @_;
+
+ print "$command\n" if $debug;
+ system($command);
}
sub everything_is_committed {
}
sub everything_is_committed {
@@
-129,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( 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";
}
everything_is_committed() or die "cannot build: uncommited changes";