1
0
Fork 0

Fix traversing of DocuBlocks directory.

This commit is contained in:
Wilfried Goesgens 2016-01-12 19:04:55 +01:00
parent 3075851004
commit 7da8a09e37
2 changed files with 5 additions and 10 deletions

View File

@ -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) \

View File

@ -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")