File tree Expand file tree Collapse file tree 3 files changed +0
-30
lines changed Expand file tree Collapse file tree 3 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ popd > /dev/null
66
77. " $scriptpath /include.sh/build-dep.sh"
88
9- acquire_lock " $0 .lock"
10-
119deps=" ctemplate-ios libetpan-ios tidy-html5-ios"
1210for dep in $deps ; do
1311 name=" $dep "
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ popd > /dev/null
66
77. " $scriptpath /include.sh/build-dep.sh"
88
9- acquire_lock " $0 .lock"
10-
119deps=" ctemplate-osx libetpan-osx"
1210for dep in $deps ; do
1311 name=" $dep "
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- # Aquires an exclusive lock for the execation of the script. The only (reqruired)
4- # parameter is the path to the lockfile to use. Only one script can run using the
5- # same lockfile path. The lock will be released automatically when the script
6- # terminates. If another process has the lock then the caller will block until
7- # they release it. This function should only be called once per script.
8- acquire_lock ()
9- {
10- # Store lockfile in a global variable, otherwise it won't be defined when the
11- # cleanup hook is called
12- lockfile=" $1 "
13- while :
14- do
15- if mkdir " $lockfile " 2> /dev/null; then
16- echo " Lock $lockfile acquired"
17-
18- # Remove lockdir when the script finishes, or when it receives a signal
19- trap ' rm -rf "$lockfile"' EXIT
20- break
21- else
22- # Yes, this is as gross as it looks
23- echo " Another process has the lock $lockfile , waiting…"
24- sleep 1
25- fi
26- done
27- }
28-
293build_git_ios ()
304{
315 if test " x$name " = x ; then
You can’t perform that action at this time.
0 commit comments