Bug 17013 - build-git-snapshot: add basetgz parameter and update master version number
This adds a basetgz parameter to specify a pbuilder image. I use this to build against different distributions. This also updates the version number for master builds to 16.06. Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
17a5ef5119
commit
bbaaabd1da
|
|
@ -27,15 +27,17 @@ use warnings;
|
|||
use Getopt::Long;
|
||||
use POSIX qw/strftime/;
|
||||
|
||||
my $basetgz;
|
||||
my $buildresult;
|
||||
my $distribution='squeeze-dev';
|
||||
my $git_checks='all';
|
||||
my $version='3.23~git';
|
||||
my $version='16.06~git';
|
||||
my $auto_version=1;
|
||||
my $need_help;
|
||||
my $debug;
|
||||
|
||||
GetOptions(
|
||||
'basetgz|b=s' => \$basetgz,
|
||||
'buildresult|r=s' => \$buildresult,
|
||||
'distribution|D=s' => \$distribution,
|
||||
'git-checks|g=s' => \$git_checks,
|
||||
|
|
@ -137,7 +139,8 @@ 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_screen( "pdebuild $pdebuildopts" );
|
||||
my $pdebuildbasetgz = $basetgz ? "-- --basetgz /var/cache/pbuilder/" . $basetgz . ".tgz" : "";
|
||||
sys_command_output_screen( "pdebuild $pdebuildbasetgz $pdebuildopts" );
|
||||
}
|
||||
|
||||
everything_is_committed() or die "cannot build: uncommited changes";
|
||||
|
|
|
|||
Loading…
Reference in New Issue