Commit 1a6db419 authored by Son Nguyen's avatar Son Nguyen

Add 16.10_STABLE translation branch to langpack scripts

also remove the obsolete branch: 1.10

Change-Id: Id8c49e035706dec827cae4b6b3a031436947aaac
parent 5ca2944e
......@@ -126,7 +126,7 @@ system "git fetch --quiet origin";
system "bzr launchpad-login dev-mahara";
! -d $BZRDIR && system "bzr init-repo $BZRDIR";
# @UPDATE when there is a new series
my @branches = qw(1.10_STABLE 15.04_STABLE 15.10_STABLE 16.04_STABLE master);
my @branches = qw(15.04_STABLE 15.10_STABLE 16.04_STABLE 16.10_STABLE master);
foreach my $branch (@branches) {
if ( ! -d "$BZRDIR/$branch" ) {
......@@ -161,7 +161,7 @@ foreach my $lang (@langkeys) {
if ( $remote =~ m/^lp:mahara-lang/ ) {
$repotype = 'launchpad';
# @UPDATE when there is a new series
@branches = qw(1.10_STABLE 15.04_STABLE 15.10_STABLE 16.04_STABLE master);
@branches = qw(15.04_STABLE 15.10_STABLE 16.04_STABLE 16.10_STABLE master);
}
elsif ( $remote =~ m{^https://git\.mahara\.org|^https://gitlab\.com} ) {
$repotype = 'git';
......@@ -171,7 +171,7 @@ foreach my $lang (@langkeys) {
# @UPDATE when there is a new series
# When adding a new branch name here, make sure to preface it with
# "\|", that is, a backslash, then a pipe.
my $remotebranchcmd = 'git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.10_STABLE\|15.04_STABLE\|15.10_STABLE\|16.04_STABLE\)$"';
my $remotebranchcmd = 'git branch -r | grep -v "HEAD" | grep "origin\/\(master\|15.04_STABLE\|15.10_STABLE\|16.04_STABLE\|16.10_STABLE\)$"';
my $remotebranches = `$remotebranchcmd`;
$remotebranches =~ s/\s+/ /;
@branches = ();
......
......@@ -60,7 +60,7 @@ cd ${GITDIR}
git fetch --quiet origin
# @UPDATE when there is a new series
branches="1.10_STABLE 15.04_STABLE 15.10_STABLE 16.04_STABLE master"
branches="15.04_STABLE 15.10_STABLE 16.04_STABLE 16.10_STABLE master"
for branch in ${branches} ; do
branchexists=`git branch | grep "${branch}$"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment