[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: texi2dvi: concurrent mkdir -p
From: |
Akim Demaille |
Subject: |
FYI: texi2dvi: concurrent mkdir -p |
Date: |
Wed, 15 Apr 2009 15:34:19 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* bin/texi2dvi (ensure_dir): Die only if we could not create the
directory at all.
Index: util/texi2dvi
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.140
diff -u -u -r1.140 texi2dvi
--- util/texi2dvi 13 Apr 2009 00:39:48 -0000 1.140
+++ util/texi2dvi 15 Apr 2009 13:32:44 -0000
@@ -195,8 +195,12 @@
{
for dir
do
+ # Beware that in parallel builds we may have several concurrent
+ # attempts to create the directory. So fail only if "mkdir"
+ # failed *and* the directory still does not exist.
test -d "$dir" \
|| mkdir "$dir" \
+ || test -d "$dir" \
|| error 1 "cannot create directory: $dir"
done
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: texi2dvi: concurrent mkdir -p,
Akim Demaille <=