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
39ff5e3e
Commit
39ff5e3e
authored
Apr 28, 2015
by
Son Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the language scripts to prevent parallel running
Change-Id: I10a3a7a0e637b7080219a6f0b4090e1b664bc94f
parent
4733b2fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
mahara-langpacks/langpacks.sh
mahara-langpacks/langpacks.sh
+7
-0
mahara-langpacks/update-pot.sh
mahara-langpacks/update-pot.sh
+9
-0
No files found.
mahara-langpacks/langpacks.sh
View file @
39ff5e3e
...
...
@@ -37,5 +37,12 @@ fi
[
!
-d
${
CLEAN
}
]
&&
mkdir
${
CLEAN
}
[
!
-d
${
TARBALLS
}
]
&&
mkdir
${
TARBALLS
}
# Lock the script to prevent running in parallel
if
[
!
mkdir
${
DATA
}
/lock
]
;
then
echo
"The script is running"
>
&2
exit
0
fi
env
DATA
=
$DATA
DOCROOT
=
$DOCROOT
SCRIPTS
=
$SCRIPTS
/usr/bin/perl
${
SCRIPTS
}
/langpacks.pl
rm
-rf
${
DATA
}
/lock
mahara-langpacks/update-pot.sh
View file @
39ff5e3e
...
...
@@ -18,6 +18,12 @@ if [ ! -w ${DOCROOT} ]; then
exit
1
fi
# Lock the script to prevent running in parallel
if
[
!
mkdir
${
DATA
}
/lock
]
;
then
echo
"The script is running"
>
&2
exit
0
fi
WORK
=
${
DATA
}
/templates
GITDIR
=
${
WORK
}
/git
TEMP
=
${
WORK
}
/temp
...
...
@@ -181,3 +187,6 @@ for branch in ${branches} ; do
echo
"
${
remotecommit
}
"
>
${
last
}
fi
done
# Unlock the script
rm
-rf
${
DATA
}
/lock
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