Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara-scripts
Commits
a4487752
Commit
a4487752
authored
May 07, 2015
by
Aaron Wells
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing all the remaining gitorious references
parent
9730e887
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
+15
-15
debian/custom-site-mahara-langpacks.templates
debian/custom-site-mahara-langpacks.templates
+1
-1
mahara-langpacks/langpacks.pl
mahara-langpacks/langpacks.pl
+9
-9
mahara-langpacks/language-repos.txt
mahara-langpacks/language-repos.txt
+2
-2
mahara-langpacks/update-po.sh
mahara-langpacks/update-po.sh
+2
-2
mahara-langpacks/update-pot.sh
mahara-langpacks/update-pot.sh
+1
-1
No files found.
debian/custom-site-mahara-langpacks.templates
View file @
a4487752
Template: custom-site-mahara-langpacks/projdir
Type: string
Default: git
://gitorious.org
/mahara-lang
Default: git
@git.nzoss.org.nz:mahara
/mahara-lang
.git
Description: Project location
The git repository to get the langpacks from
...
...
mahara-langpacks/langpacks.pl
View file @
a4487752
...
...
@@ -40,8 +40,8 @@ my $CLEAN = "${DATA}/new";
my
$TARBALLS
=
"
${DATA}
/tarballs
";
my
$MAHARA
=
"
${DATA}
/mahara
";
my
$MAHARAREMOTE
=
'
git
://gitorious.org/mahara
/mahara.git
';
my
$REPOLIST
=
'
http://git
oriou
s.org/mahara/mahara-scripts/blob
s/raw
/master/mahara-langpacks/language-repos.txt
';
my
$MAHARAREMOTE
=
'
git
@github.com:MaharaProject
/mahara.git
';
my
$REPOLIST
=
'
http
s
://git
.nzos
s.org
.nz
/mahara/mahara-scripts/blob/master/mahara-langpacks/language-repos.txt
';
mkpath
$GITDIR
;
mkpath
$DIRTY
;
...
...
@@ -51,7 +51,7 @@ mkpath $TARBALLS;
print
STDERR
"
Checking langpacks for updates:
"
.
`
date
\
"+%Y-%m-%d %H:%M:%S
\
"
`;
# A language repo list can be put in the $DATA dir for testing. If there's not one
# there, try to get an up-to-date one out of the
gitorious
mahara-scripts repo
# there, try to get an up-to-date one out of the mahara-scripts repo
sitory
# (allows updates to the repo list without having to redeploy the package).
my
$repolist
;
if
(
-
f
"
$SCRIPTS
/language-repos.txt
"
)
{
...
...
@@ -125,7 +125,7 @@ foreach my $branch (@branches) {
foreach
my
$lang
(
@langkeys
)
{
if
(
!
defined
$last
->
{
$lang
}
)
{
$last
->
{
$lang
}
=
{
repo
=>
"
git
://gitoriou
s.org
/
mahara-lang/
$lang
.git
"
};
$last
->
{
$lang
}
=
{
repo
=>
"
git
@git
.nzos
s.org
.nz:
mahara-lang/
$lang
.git
"
};
}
if
(
defined
$langs
{
$lang
}
->
{
repo
}
)
{
...
...
@@ -146,8 +146,8 @@ foreach my $lang (@langkeys) {
$repotype
=
'
launchpad
';
@branches
=
qw(1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE master)
;
}
elsif
(
$remote
=~
m{^git
://gitoriou
s\.org}
)
{
$repotype
=
'
git
orious
';
elsif
(
$remote
=~
m{^git
@git\.nzos
s\.org
\.nz
}
)
{
$repotype
=
'
git
';
!
-
d
"
$gitlangdir
"
&&
system
"
git clone --quiet
$remote
$gitlangdir
";
chdir
$gitlangdir
;
system
"
git fetch --quiet
";
...
...
@@ -204,7 +204,7 @@ foreach my $lang (@langkeys) {
if
(
"
$remotecommit
"
ne
"
$lastruncommit
"
)
{
print
STDERR
"
Updating
$lang
$branch
\n
";
if
(
$repotype
eq
'
git
orious
'
)
{
if
(
$repotype
eq
'
git
'
)
{
my
$branchcmd
=
'
git branch | grep "
'
.
$branch
.
'
$"
';
my
$branchexists
=
`
$branchcmd
`;
...
...
@@ -250,7 +250,7 @@ foreach my $lang (@langkeys) {
}
}
elsif
(
$repotype
eq
'
git
orious
'
)
{
elsif
(
$repotype
eq
'
git
'
)
{
# .po is not available, so this is a php langpack
...
...
@@ -329,7 +329,7 @@ foreach my $lang (@langkeys) {
chdir
$currentdir
;
my
$localcommit
;
if
(
$repotype
eq
'
git
orious
'
)
{
if
(
$repotype
eq
'
git
'
)
{
$localcommit
=
`
git log --pretty=format:
\
"%H %ai %an
\
"
$branch
| head -1
`;
}
else
{
...
...
mahara-langpacks/language-repos.txt
View file @
a4487752
ar lp:mahara-lang
ca lp:mahara-lang
cs git
://gitoriou
s.org
/
mahara-lang/cs.git
cs git
@git.nzos
s.org
.nz:
mahara-lang/cs.git
da lp:mahara-lang
de lp:mahara-lang
el lp:mahara-lang
en_GB lp:mahara-lang
en_us git
://gitoriou
s.org
/
mahara-lang/en_us.git
en_us git
@git.nzos
s.org
.nz:
mahara-lang/en_us.git
es lp:mahara-lang
eu lp:mahara-lang
fi lp:mahara-lang
...
...
mahara-langpacks/update-po.sh
View file @
a4487752
...
...
@@ -22,14 +22,14 @@ PHPSCRIPT=${HOME}/mahara-scripts/mahara-langpacks/php-po.php
[
!
-d
${
GITDIR
}
]
&&
mkdir
${
GITDIR
}
[
!
-d
${
OUT
}
]
&&
mkdir
${
OUT
}
mahararemote
=
'git
://gitorious.org/mahara
/mahara.git'
mahararemote
=
'git
@github.com:MaharaProject
/mahara.git'
if
[
!
-d
${
MAHARA
}
]
;
then
cd
${
WORK
}
git clone
${
mahararemote
}
${
MAHARA
}
fi
langremotebase
=
'git
://gitoriou
s.org
/
mahara-lang'
langremotebase
=
'git
@git.nzos
s.org
.nz:
mahara-lang
/
'
langs
=
"ca cs da de en_us es eu fi fr he it ja ko nl no_nb sl zh_tw"
for
lang
in
${
langs
}
;
do
...
...
mahara-langpacks/update-pot.sh
View file @
a4487752
...
...
@@ -32,7 +32,7 @@ TEMP=${WORK}/temp
[
!
-d
${
TEMP
}
]
&&
mkdir
${
TEMP
}
[
!
-d
${
DOCROOT
}
/pot
]
&&
mkdir
${
DOCROOT
}
/pot
#mahararemote='git
://gitoriou
s.org/mahara/mahara.git'
#mahararemote='git
@git.nzos
s.org
.nz
/mahara/mahara.git'
mahararemote
=
'git@github.com:MaharaProject/mahara.git'
if
[
!
-d
${
GITDIR
}
]
;
then
...
...
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