1
0
Fork 0

Merge branch 'devel' of https://github.com/arangodb/arangodb into devel

This commit is contained in:
Jan Steemann 2015-05-26 18:01:46 +02:00
commit b0a58acce6
1 changed files with 7 additions and 1 deletions

View File

@ -1,8 +1,11 @@
import os import os
import sys
import re import re
import inspect import inspect
import cgi import cgi
fullSuccess = True
def file_content(filepath): def file_content(filepath):
""" Fetches and formats file's content to perform the required operation. """ Fetches and formats file's content to perform the required operation.
""" """
@ -151,7 +154,7 @@ def example_content(filepath, fh, tag):
def fetch_comments(dirpath): def fetch_comments(dirpath):
""" Fetches comments from files and writes to a file in required format. """ Fetches comments from files and writes to a file in required format.
""" """
global fullSuccess
comments_filename = "allComments.txt" comments_filename = "allComments.txt"
fh = open(comments_filename, "a") fh = open(comments_filename, "a")
shouldIgnoreLine = False; shouldIgnoreLine = False;
@ -181,6 +184,7 @@ def fetch_comments(dirpath):
if os.path.isfile(dirpath): if os.path.isfile(dirpath):
example_content(dirpath, fh, _filename) example_content(dirpath, fh, _filename)
else: else:
fullSuccess = False
print "Could not find code for " + _filename print "Could not find code for " + _filename
else: else:
fh.write("%s\n" % _text) fh.write("%s\n" % _text)
@ -206,3 +210,5 @@ if __name__ == "__main__":
fetch_comments(dirpath) fetch_comments(dirpath)
print "Searching for docublocks in " + i print "Searching for docublocks in " + i
os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'templates')) os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'templates'))
if not fullSuccess:
sys.exit(1)