Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
scripts
mahara-scripts
Commits
a565964b
Commit
a565964b
authored
Apr 11, 2016
by
Aaron Wells
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing unsupported old branches
1.7, 1.8, and 1.9
parent
a2b6bb5e
Pipeline
#47
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mahara-langpacks/langpacks.pl
mahara-langpacks/langpacks.pl
+3
-3
mahara-langpacks/update-pot.sh
mahara-langpacks/update-pot.sh
+1
-1
No files found.
mahara-langpacks/langpacks.pl
View file @
a565964b
...
...
@@ -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.7_STABLE 1.8_STABLE 1.9_STABLE
1.10_STABLE 15.04_STABLE 15.10_STABLE 16.04_STABLE master)
;
my
@branches
=
qw(1.10_STABLE 15.04_STABLE 15.10_STABLE 16.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(
1.7_STABLE 1.8_STABLE 1.9_STABLE
1.10_STABLE 15.04_STABLE 15.10_STABLE 16.04_STABLE master)
;
@branches
=
qw(1.10_STABLE 15.04_STABLE 15.10_STABLE 16.04_STABLE master)
;
}
elsif
(
$remote
=~
m{^https://git\.mahara\.org|^https://gitlab\.com}
)
{
$repotype
=
'
git
';
...
...
@@ -169,7 +169,7 @@ foreach my $lang (@langkeys) {
chdir
$gitlangdir
;
system
"
git fetch --quiet
";
# @UPDATE when there is a new series
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.
7_STABLE\|1.8_STABLE\|1.9_STABLE\|1.
10_STABLE|15.04_STABLE|15.10_STABLE|16.04_STABLE\)$"
';
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.10_STABLE|15.04_STABLE|15.10_STABLE|16.04_STABLE\)$"
';
my
$remotebranches
=
`
$remotebranchcmd
`;
$remotebranches
=~
s/\s+/ /
;
@branches
=
();
...
...
mahara-langpacks/update-pot.sh
View file @
a565964b
...
...
@@ -60,7 +60,7 @@ cd ${GITDIR}
git fetch
--quiet
origin
# @UPDATE when there is a new series
branches
=
"
1.7_STABLE 1.8_STABLE 1.9_STABLE
1.10_STABLE 15.04_STABLE 15.10_STABLE 16.04_STABLE master"
branches
=
"1.10_STABLE 15.04_STABLE 15.10_STABLE 16.04_STABLE master"
for
branch
in
${
branches
}
;
do
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