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: examples:
@rm -f /tmp/arangodb.examples @rm -f /tmp/arangodb.examples
rm -rf @srcdir@/Documentation/Books/ppbooks
python @srcdir@/Documentation/Scripts/generateExamples.py \ python @srcdir@/Documentation/Scripts/generateExamples.py \
--outputDir @builddir@/Documentation/Examples \ --outputDir @builddir@/Documentation/Examples \
--onlyThisOne "$(FILTER_EXAMPLE)" \ --onlyThisOne "$(FILTER_EXAMPLE)" \
--outputFile /tmp/arangosh.examples.js \ --outputFile /tmp/arangosh.examples.js \
--arangoshSetup @srcdir@/Documentation/Examples/setup-arangosh.js \ --arangoshSetup @srcdir@/Documentation/Examples/setup-arangosh.js \
@srcdir@/js/actions \ @srcdir@/Documentation/DocuBlocks \
@srcdir@/js/client \ @srcdir@/Documentation/Books/Users
@srcdir@/js/common \
@srcdir@/js/server \
@srcdir@/js/apps/system/_api/gharial/APP \
@srcdir@/Documentation/Books/Users \
@srcdir@/arangod/RestHandler \
@srcdir@/arangod/V8Server
if test -z "$(server.endpoint)"; then \ if test -z "$(server.endpoint)"; then \
$(MAKE) start-server PID=$(PID) \ $(MAKE) start-server PID=$(PID) \

View File

@ -464,7 +464,7 @@ def loopDirectories():
if os.path.isdir(filename): if os.path.isdir(filename):
for root, dirs, files in os.walk(filename): for root, dirs, files in os.walk(filename):
for file in files: 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)) filenames.append(os.path.join(root, file))
else: else:
filenames.append(filename) filenames.append(filename)
@ -490,6 +490,7 @@ def loopDirectories():
fstate = OPTION_NORMAL fstate = OPTION_NORMAL
sys.stdout = open(filename, 'w') sys.stdout = open(filename, 'w')
print >> sys.stderr, repr(filenames)
for filename in filenames: for filename in filenames:
if (filename.find("#") < 0): if (filename.find("#") < 0):
f = open(filename, "r") f = open(filename, "r")