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
0782129d
Commit
0782129d
authored
Sep 16, 2013
by
Son Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct the path of language-repos.txt
parent
e95c1e56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mahara-langpacks/langpacks.pl
mahara-langpacks/langpacks.pl
+5
-4
No files found.
mahara-langpacks/langpacks.pl
View file @
0782129d
...
...
@@ -20,12 +20,13 @@ use FindBin;
use
File::
Path
qw(mkpath rmtree)
;
use
LWP::
UserAgent
;
foreach
my
$c
qw(DATA DOCROOT)
{
foreach
my
$c
qw(DATA DOCROOT
SCRIPTS
)
{
exists
$ENV
{
$c
}
or
die
("
\$
ENV{
$c
} undefined
");
}
my
$DATA
=
$ENV
{
DATA
};
my
$DOCROOT
=
$ENV
{
DOCROOT
};
my
$SCRIPTS
=
$ENV
{
SCRIPTS
};
my
$CLEANCMD
=
"
/usr/bin/php
$FindBin
::Bin/clean-php.php
";
my
$SYNTAXCMD
=
"
/usr/bin/php -l
";
...
...
@@ -53,9 +54,9 @@ print STDERR "Checking langpacks for updates: " . `date \"+%Y-%m-%d %H:%M:%S\"`;
# there, try to get an up-to-date one out of the gitorious mahara-scripts repo
# (allows updates to the repo list without having to redeploy the package).
my
$repolist
;
if
(
-
f
"
$
DATA
/language-repos.txt
"
)
{
print
STDERR
"
Using repository list in
$
DATA
/language-repos.txt
\n
";
open
$repofh
,
'
<
',
"
$
DATA
/language-repos.txt
"
or
die
$!
;
if
(
-
f
"
$
SCRIPTS
/language-repos.txt
"
)
{
print
STDERR
"
Using repository list in
$
SCRIPTS
/language-repos.txt
\n
";
open
$repofh
,
'
<
',
"
$
SCRIPTS
/language-repos.txt
"
or
die
$!
;
local
$/
=
undef
;
$repolist
=
<
$repofh
>
;
}
...
...
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