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
e95c1e56
Commit
e95c1e56
authored
Apr 22, 2013
by
Aaron Wells
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 1.7_STABLE to language pack scripts
parent
bb88efc8
Changes
2
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 @
e95c1e56
...
@@ -109,7 +109,7 @@ system "git fetch --quiet origin";
...
@@ -109,7 +109,7 @@ system "git fetch --quiet origin";
# For launchpad, all languages are in a single branch, so update the lot
# For launchpad, all languages are in a single branch, so update the lot
!
-
d
$BZRDIR
&&
system
"
bzr init-repo
$BZRDIR
";
!
-
d
$BZRDIR
&&
system
"
bzr init-repo
$BZRDIR
";
my
@branches
=
qw(1.3_STABLE 1.4_STABLE 1.5_STABLE 1.6_STABLE master)
;
my
@branches
=
qw(1.3_STABLE 1.4_STABLE 1.5_STABLE 1.6_STABLE
1.7_STABLE
master)
;
foreach
my
$branch
(
@branches
)
{
foreach
my
$branch
(
@branches
)
{
if
(
!
-
d
"
$BZRDIR
/
$branch
"
)
{
if
(
!
-
d
"
$BZRDIR
/
$branch
"
)
{
...
@@ -143,14 +143,14 @@ foreach my $lang (@langkeys) {
...
@@ -143,14 +143,14 @@ foreach my $lang (@langkeys) {
if
(
$remote
=~
m/^lp:mahara-lang/
)
{
if
(
$remote
=~
m/^lp:mahara-lang/
)
{
$repotype
=
'
launchpad
';
$repotype
=
'
launchpad
';
@branches
=
qw(1.3_STABLE 1.4_STABLE 1.5_STABLE 1.6_STABLE master)
;
@branches
=
qw(1.3_STABLE 1.4_STABLE 1.5_STABLE 1.6_STABLE
1.7_STABLE
master)
;
}
}
elsif
(
$remote
=~
m{^git://gitorious\.org}
)
{
elsif
(
$remote
=~
m{^git://gitorious\.org}
)
{
$repotype
=
'
gitorious
';
$repotype
=
'
gitorious
';
!
-
d
"
$gitlangdir
"
&&
system
"
git clone --quiet
$remote
$gitlangdir
";
!
-
d
"
$gitlangdir
"
&&
system
"
git clone --quiet
$remote
$gitlangdir
";
chdir
$gitlangdir
;
chdir
$gitlangdir
;
system
"
git fetch --quiet
";
system
"
git fetch --quiet
";
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.3_STABLE\|1.4_STABLE\|1.5_STABLE\|1.6_STABLE\)$"
';
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.3_STABLE\|1.4_STABLE\|1.5_STABLE\|1.6_STABLE\
|1.7_STABLE\
)$"
';
my
$remotebranches
=
`
$remotebranchcmd
`;
my
$remotebranches
=
`
$remotebranchcmd
`;
$remotebranches
=~
s/\s+/ /
;
$remotebranches
=~
s/\s+/ /
;
@branches
=
();
@branches
=
();
...
...
mahara-langpacks/update-pot.sh
View file @
e95c1e56
...
@@ -40,7 +40,7 @@ BZR=${WORK}/mahara-lang-bzr
...
@@ -40,7 +40,7 @@ BZR=${WORK}/mahara-lang-bzr
cd
${
GITDIR
}
cd
${
GITDIR
}
git fetch
--quiet
origin
git fetch
--quiet
origin
branches
=
"1.3_STABLE 1.4_STABLE 1.5_STABLE 1.6_STABLE master"
branches
=
"1.3_STABLE 1.4_STABLE 1.5_STABLE 1.6_STABLE
1.7_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