Commit 6b9754df authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Add 18.04_STABLE translation branch to langpack scripts

    added 17.04,17.10
    also remove the obsolete branch: 15.04, 15.10, 16.04
parent 1474bf6f
......@@ -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(15.04_STABLE 15.10_STABLE 16.04_STABLE 16.10_STABLE master);
my @branches = qw(16.10_STABLE 17.04_STABLE 17.10_STABLE 18.04_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(15.04_STABLE 15.10_STABLE 16.04_STABLE 16.10_STABLE master);
@branches = qw(16.10_STABLE 17.04_STABLE 17.10_STABLE 18.04_STABLE master);
}
elsif ( $remote =~ m{^https://git\.mahara\.org|^https://gitlab\.com} ) {
$repotype = 'git';
......@@ -169,9 +169,9 @@ foreach my $lang (@langkeys) {
chdir $gitlangdir;
system "git fetch --quiet";
# @UPDATE when there is a new series
# When adding a new branch name here, make sure to preface it with
# 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\|15.04_STABLE\|15.10_STABLE\|16.04_STABLE\|16.10_STABLE\)$"';
my $remotebranchcmd = 'git branch -r | grep -v "HEAD" | grep "origin\/\(master\|16.10_STABLE\|17.04_STABLE\|17.10_STABLE\|18.04_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="15.04_STABLE 15.10_STABLE 16.04_STABLE 16.10_STABLE master"
branches="16.10_STABLE 17.04_STABLE 17.10_STABLE 18.04_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