View | Details | Raw Unified | Return to bug 17013
Collapse All | Expand All

(-)a/debian/build-git-snapshot (-3 / +5 lines)
Lines 27-41 use warnings; Link Here
27
use Getopt::Long;
27
use Getopt::Long;
28
use POSIX qw/strftime/;
28
use POSIX qw/strftime/;
29
29
30
my $basetgz;
30
my $buildresult;
31
my $buildresult;
31
my $distribution='squeeze-dev';
32
my $distribution='squeeze-dev';
32
my $git_checks='all';
33
my $git_checks='all';
33
my $version='3.23~git';
34
my $version='16.06~git';
34
my $auto_version=1;
35
my $auto_version=1;
35
my $need_help;
36
my $need_help;
36
my $debug;
37
my $debug;
37
38
38
GetOptions(
39
GetOptions(
40
    'basetgz|b=s'      => \$basetgz,
39
    'buildresult|r=s'   => \$buildresult,
41
    'buildresult|r=s'   => \$buildresult,
40
    'distribution|D=s'  => \$distribution,
42
    'distribution|D=s'  => \$distribution,
41
    'git-checks|g=s'    => \$git_checks,
43
    'git-checks|g=s'    => \$git_checks,
Lines 137-143 sub build_package { Link Here
137
    sys_command_output( qq{git archive --format=tar --prefix="koha-$newversion/" HEAD | gzip -9 > "../koha_$newversion.tar.gz"} );
139
    sys_command_output( qq{git archive --format=tar --prefix="koha-$newversion/" HEAD | gzip -9 > "../koha_$newversion.tar.gz"} );
138
140
139
    my $pdebuildopts = $buildresult ? "--buildresult $buildresult" : "";
141
    my $pdebuildopts = $buildresult ? "--buildresult $buildresult" : "";
140
    sys_command_output_screen( "pdebuild $pdebuildopts" );
142
    my $pdebuildbasetgz = $basetgz ? "-- --basetgz /var/cache/pbuilder/" . $basetgz . ".tgz" : "";
143
    sys_command_output_screen( "pdebuild $pdebuildbasetgz $pdebuildopts" );
141
}
144
}
142
145
143
everything_is_committed() or die "cannot build: uncommited changes";
146
everything_is_committed() or die "cannot build: uncommited changes";
144
- 

Return to bug 17013