mirror of https://gitee.com/bigwinds/arangodb
Fix traversing of DocuBlocks directory.
This commit is contained in:
parent
3075851004
commit
7da8a09e37
|
@ -62,20 +62,14 @@ swagger:
|
|||
|
||||
examples:
|
||||
@rm -f /tmp/arangodb.examples
|
||||
|
||||
rm -rf @srcdir@/Documentation/Books/ppbooks
|
||||
python @srcdir@/Documentation/Scripts/generateExamples.py \
|
||||
--outputDir @builddir@/Documentation/Examples \
|
||||
--onlyThisOne "$(FILTER_EXAMPLE)" \
|
||||
--outputFile /tmp/arangosh.examples.js \
|
||||
--arangoshSetup @srcdir@/Documentation/Examples/setup-arangosh.js \
|
||||
@srcdir@/js/actions \
|
||||
@srcdir@/js/client \
|
||||
@srcdir@/js/common \
|
||||
@srcdir@/js/server \
|
||||
@srcdir@/js/apps/system/_api/gharial/APP \
|
||||
@srcdir@/Documentation/Books/Users \
|
||||
@srcdir@/arangod/RestHandler \
|
||||
@srcdir@/arangod/V8Server
|
||||
@srcdir@/Documentation/DocuBlocks \
|
||||
@srcdir@/Documentation/Books/Users
|
||||
|
||||
if test -z "$(server.endpoint)"; then \
|
||||
$(MAKE) start-server PID=$(PID) \
|
||||
|
|
|
@ -464,7 +464,7 @@ def loopDirectories():
|
|||
if os.path.isdir(filename):
|
||||
for root, dirs, files in os.walk(filename):
|
||||
for file in files:
|
||||
if (file.endswith(".mdpp") or file.endswith(".js") or file.endswith(".cpp")):
|
||||
if (file.endswith(".md") or file.endswith(".mdpp") or file.endswith(".js") or file.endswith(".cpp")):
|
||||
filenames.append(os.path.join(root, file))
|
||||
else:
|
||||
filenames.append(filename)
|
||||
|
@ -490,6 +490,7 @@ def loopDirectories():
|
|||
fstate = OPTION_NORMAL
|
||||
sys.stdout = open(filename, 'w')
|
||||
|
||||
print >> sys.stderr, repr(filenames)
|
||||
for filename in filenames:
|
||||
if (filename.find("#") < 0):
|
||||
f = open(filename, "r")
|
||||
|
|
Loading…
Reference in New Issue