Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scripts
mahara-scripts
Commits
541b5706
Commit
541b5706
authored
Apr 02, 2019
by
Cecilia Vela Gurovic
Browse files
19.04 release
parent
3fb0d050
Changes
2
Show whitespace changes
Inline
Side-by-side
mahara-langpacks/langpacks.pl
View file @
541b5706
...
@@ -126,7 +126,7 @@ system "git fetch --quiet origin";
...
@@ -126,7 +126,7 @@ system "git fetch --quiet origin";
system
"
bzr launchpad-login dev-mahara
";
system
"
bzr launchpad-login dev-mahara
";
!
-
d
$BZRDIR
&&
system
"
bzr init-repo
$BZRDIR
";
!
-
d
$BZRDIR
&&
system
"
bzr init-repo
$BZRDIR
";
# @UPDATE when there is a new series
# @UPDATE when there is a new series
my
@branches
=
qw(17.04_STABLE 17.10_STABLE 18.04_STABLE 18.10_STABLE master)
;
my
@branches
=
qw(17.04_STABLE 17.10_STABLE 18.04_STABLE 18.10_STABLE
19.04_STABLE
master)
;
foreach
my
$branch
(
@branches
)
{
foreach
my
$branch
(
@branches
)
{
if
(
!
-
d
"
$BZRDIR
/
$branch
"
)
{
if
(
!
-
d
"
$BZRDIR
/
$branch
"
)
{
...
@@ -161,7 +161,7 @@ foreach my $lang (@langkeys) {
...
@@ -161,7 +161,7 @@ foreach my $lang (@langkeys) {
if
(
$remote
=~
m/^lp:mahara-lang/
)
{
if
(
$remote
=~
m/^lp:mahara-lang/
)
{
$repotype
=
'
launchpad
';
$repotype
=
'
launchpad
';
# @UPDATE when there is a new series
# @UPDATE when there is a new series
@branches
=
qw(17.04_STABLE 17.10_STABLE 18.04_STABLE 18.10_STABLE master)
;
@branches
=
qw(17.04_STABLE 17.10_STABLE 18.04_STABLE 18.10_STABLE
19.04_STABLE
master)
;
}
}
elsif
(
$remote
=~
m{^https://git\.mahara\.org|^https://gitlab\.com}
)
{
elsif
(
$remote
=~
m{^https://git\.mahara\.org|^https://gitlab\.com}
)
{
$repotype
=
'
git
';
$repotype
=
'
git
';
...
@@ -171,7 +171,7 @@ foreach my $lang (@langkeys) {
...
@@ -171,7 +171,7 @@ foreach my $lang (@langkeys) {
# @UPDATE when there is a new series
# @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.
# "\|", that is, a backslash, then a pipe.
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|17.04_STABLE\|17.10_STABLE\|18.04_STABLE\|18.10_STABLE\)$"
';
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|17.04_STABLE\|17.10_STABLE\|18.04_STABLE\|18.10_STABLE\
|19.04_STABLE\
)$"
';
my
$remotebranches
=
`
$remotebranchcmd
`;
my
$remotebranches
=
`
$remotebranchcmd
`;
$remotebranches
=~
s/\s+/ /
;
$remotebranches
=~
s/\s+/ /
;
@branches
=
();
@branches
=
();
...
...
mahara-langpacks/update-pot.sh
View file @
541b5706
...
@@ -60,7 +60,7 @@ cd ${GITDIR}
...
@@ -60,7 +60,7 @@ cd ${GITDIR}
git fetch
--quiet
origin
git fetch
--quiet
origin
# @UPDATE when there is a new series
# @UPDATE when there is a new series
branches
=
"17.04_STABLE 17.10_STABLE 18.04_STABLE 18.10_STABLE master"
branches
=
"17.04_STABLE 17.10_STABLE 18.04_STABLE 18.10_STABLE
19.04_STABLE
master"
for
branch
in
${
branches
}
;
do
for
branch
in
${
branches
}
;
do
branchexists
=
`
git branch |
grep
"
${
branch
}
$"
`
branchexists
=
`
git branch |
grep
"
${
branch
}
$"
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment