mirror of https://gitee.com/bigwinds/arangodb
wiki
This commit is contained in:
parent
976ee6fdd1
commit
87b6f19e79
|
@ -39,5 +39,6 @@ Doxygen/html/
|
|||
Doxygen/js/
|
||||
Doxygen/latex/
|
||||
Doxygen/xml/
|
||||
Doxygen/wiki/
|
||||
build.sh
|
||||
commit.sh
|
||||
|
|
20
Makefile.am
20
Makefile.am
|
@ -62,14 +62,26 @@ Doxygen/js/system:
|
|||
mkdir Doxygen/js/system
|
||||
|
||||
Doxygen/js/%.c: @srcdir@/js/%.js Doxygen/js
|
||||
python @top_srcdir@/config/js2doxy.py $< > $@
|
||||
python @top_srcdir@/Doxygen/Scripts/js2doxy.py $< > $@
|
||||
|
||||
Doxygen/js/system/%.c: @srcdir@/js/system/%.js Doxygen/js/system
|
||||
python @top_srcdir@/config/js2doxy.py $< > $@
|
||||
python @top_srcdir@/Doxygen/Scripts/js2doxy.py $< > $@
|
||||
|
||||
doxygen: Doxygen/avocado.doxy
|
||||
doxygen: Doxygen/avocado.doxy $(DOXYGEN)
|
||||
doxygen Doxygen/avocado.doxy
|
||||
|
||||
################################################################################
|
||||
## wiki
|
||||
################################################################################
|
||||
|
||||
.PHONY: wiki
|
||||
|
||||
PANDOC = pandoc -f markdown -t markdown
|
||||
|
||||
wiki: $(WIKI)
|
||||
@test -d Doxygen/wiki || mkdir Doxygen/wiki
|
||||
for w in $(WIKI); do $(PANDOC) -o Doxygen/wiki/`basename $$w` $$w; done
|
||||
|
||||
################################################################################
|
||||
## build information
|
||||
################################################################################
|
||||
|
@ -93,3 +105,5 @@ BUILD_H_TARGET:
|
|||
|
||||
clean-local:
|
||||
rm -f $(BUILT_SOURCES)
|
||||
rm -f $(DOXYGEN)
|
||||
rm -f $(WIKI)
|
||||
|
|
|
@ -244,7 +244,7 @@ BUILT_SOURCES += \
|
|||
## DOXYGEN
|
||||
################################################################################
|
||||
|
||||
BUILT_SOURCES += \
|
||||
DOXYGEN = \
|
||||
Doxygen/js/shell.c \
|
||||
Doxygen/js/system/indexes.c \
|
||||
Doxygen/js/actions.c \
|
||||
|
@ -253,3 +253,85 @@ BUILT_SOURCES += \
|
|||
Doxygen/js/modules.c \
|
||||
Doxygen/js/json.c
|
||||
|
||||
################################################################################
|
||||
## wiki
|
||||
################################################################################
|
||||
|
||||
WIKI = \
|
||||
Doxygen/xml/d9/d52/DefineAction.md \
|
||||
Doxygen/xml/d3/d58/CommandLineLogging.md \
|
||||
Doxygen/xml/d4/d0c/ActionsQueryBuilding.md \
|
||||
Doxygen/xml/db/d15/CommandLine.md \
|
||||
Doxygen/xml/d0/d1b/RestDocument.md \
|
||||
Doxygen/xml/d3/d1a/Pagination.md \
|
||||
Doxygen/xml/d2/dbe/StartStop.md \
|
||||
Doxygen/xml/dd/de5/AvocadoScript.md \
|
||||
Doxygen/xml/d6/d3b/JavaScriptFunc.md \
|
||||
Doxygen/xml/d7/daa/Actions.md \
|
||||
Doxygen/xml/d4/d7d/HttpInterface.md \
|
||||
Doxygen/xml/d9/de4/JSModules.md \
|
||||
Doxygen/xml/d0/da4/GraphFuncIndex.md \
|
||||
Doxygen/xml/d9/db2/CommandLineScheduler.md \
|
||||
Doxygen/xml/d8/d3d/RestInterface.md \
|
||||
Doxygen/xml/db/d14/GeoCoordinates.md \
|
||||
Doxygen/xml/d3/db6/JavaScriptFuncIndex.md \
|
||||
Doxygen/xml/df/d91/CommandLineRandom.md \
|
||||
Doxygen/xml/d9/ddd/CommandLineAvocado.md
|
||||
|
||||
Doxygen/xml/d9/d52/DefineAction.md: Doxygen/xml/d9/d52/DefineAction.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d3/d58/CommandLineLogging.md: Doxygen/xml/d3/d58/CommandLineLogging.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d4/d0c/ActionsQueryBuilding.md: Doxygen/xml/d4/d0c/ActionsQueryBuilding.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/db/d15/CommandLine.md: Doxygen/xml/db/d15/CommandLine.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d0/d1b/RestDocument.md: Doxygen/xml/d0/d1b/RestDocument.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d3/d1a/Pagination.md: Doxygen/xml/d3/d1a/Pagination.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d2/dbe/StartStop.md: Doxygen/xml/d2/dbe/StartStop.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/dd/de5/AvocadoScript.md: Doxygen/xml/dd/de5/AvocadoScript.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d6/d3b/JavaScriptFunc.md: Doxygen/xml/d6/d3b/JavaScriptFunc.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d7/daa/Actions.md: Doxygen/xml/d7/daa/Actions.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d4/d7d/HttpInterface.md: Doxygen/xml/d4/d7d/HttpInterface.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d9/de4/JSModules.md: Doxygen/xml/d9/de4/JSModules.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d0/da4/GraphFuncIndex.md: Doxygen/xml/d0/da4/GraphFuncIndex.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d9/db2/CommandLineScheduler.md: Doxygen/xml/d9/db2/CommandLineScheduler.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d8/d3d/RestInterface.md: Doxygen/xml/d8/d3d/RestInterface.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/db/d14/GeoCoordinates.md: Doxygen/xml/db/d14/GeoCoordinates.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d3/db6/JavaScriptFuncIndex.md: Doxygen/xml/d3/db6/JavaScriptFuncIndex.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/df/d91/CommandLineRandom.md: Doxygen/xml/df/d91/CommandLineRandom.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
Doxygen/xml/d9/ddd/CommandLineAvocado.md: Doxygen/xml/d9/ddd/CommandLineAvocado.xml
|
||||
python @top_srcdir@/Doxygen/Scripts/xml2md.py $< > $@
|
||||
|
||||
|
|
2
build.h
2
build.h
|
@ -1 +1 @@
|
|||
#define TRIAGENS_VERSION "0.0.8 [1121:1124M]"
|
||||
#define TRIAGENS_VERSION "0.0.8 [1121:1129M]"
|
||||
|
|
|
@ -1,140 +0,0 @@
|
|||
################################################################################
|
||||
### @brief create a C stub from a Python file
|
||||
###
|
||||
### @file
|
||||
###
|
||||
### DISCLAIMER
|
||||
###
|
||||
### Copyright by triAGENS GmbH - All rights reserved.
|
||||
###
|
||||
### The Programs (which include both the software and documentation)
|
||||
### contain proprietary information of triAGENS GmbH; they are
|
||||
### provided under a license agreement containing restrictions on use and
|
||||
### disclosure and are also protected by copyright, patent and other
|
||||
### intellectual and industrial property laws. Reverse engineering,
|
||||
### disassembly or decompilation of the Programs, except to the extent
|
||||
### required to obtain interoperability with other independently created
|
||||
### software or as specified by law, is prohibited.
|
||||
###
|
||||
### The Programs are not intended for use in any nuclear, aviation, mass
|
||||
### transit, medical, or other inherently dangerous applications. It shall
|
||||
### be the licensee's responsibility to take all appropriate fail-safe,
|
||||
### backup, redundancy, and other measures to ensure the safe use of such
|
||||
### applications if the Programs are used for such purposes, and triAGENS
|
||||
### GmbH disclaims liability for any damages caused by such use of
|
||||
### the Programs.
|
||||
###
|
||||
### This software is the confidential and proprietary information of
|
||||
### triAGENS GmbH. You shall not disclose such confidential and
|
||||
### proprietary information and shall use it only in accordance with the
|
||||
### terms of the license agreement you entered into with triAGENS GmbH.
|
||||
###
|
||||
### Copyright holder is triAGENS GmbH, Cologne, Germany
|
||||
###
|
||||
### @author Dr. Frank Celler
|
||||
### @author Copyright 2011, triagens GmbH, Cologne, Germany
|
||||
################################################################################
|
||||
|
||||
import re, sys, string
|
||||
|
||||
file_name = sys.argv[1]
|
||||
|
||||
DEBUG = False
|
||||
|
||||
################################################################################
|
||||
### @brief parse file
|
||||
################################################################################
|
||||
|
||||
r1 = re.compile(r'//')
|
||||
r2 = re.compile(r'function\s*([a-zA-Z0-9_]*)\s*\((.*)\)\s*{')
|
||||
r3 = re.compile(r'^\s*$')
|
||||
r4 = re.compile(r'\s*([a-zA-Z0-9\.]*)\s*=\s*function\s*\((.*)\)\s*{')
|
||||
r5 = re.compile(r'^(defineAction|defineSystemAction)\("(.*)",')
|
||||
|
||||
f = open(file_name, "r")
|
||||
|
||||
comment = False
|
||||
other = True
|
||||
count = 0;
|
||||
|
||||
for line in f:
|
||||
line = line.rstrip('\n')
|
||||
count = count + 1
|
||||
|
||||
# check for comments
|
||||
m = r1.match(line)
|
||||
|
||||
if m:
|
||||
if not comment and not other:
|
||||
print "void dummy_%d ();\n" % count
|
||||
|
||||
print "%s" % line
|
||||
|
||||
comment = True
|
||||
other = False
|
||||
continue
|
||||
|
||||
comment = False
|
||||
|
||||
# check for empty lines
|
||||
m = r3.match(line)
|
||||
|
||||
if m:
|
||||
print "%s" % line
|
||||
continue
|
||||
|
||||
# check for function definition
|
||||
m = r2.match(line)
|
||||
|
||||
if m:
|
||||
name = m.group(1)
|
||||
args = m.group(2).split(',')
|
||||
func = "void JSF_" + name + " ("
|
||||
sep = ""
|
||||
|
||||
if 1 == len(args) and args[0] == "":
|
||||
args = []
|
||||
|
||||
for a in args:
|
||||
a = a.strip()
|
||||
func = func + sep + "int " + a;
|
||||
sep = ", "
|
||||
|
||||
func = func + ")"
|
||||
|
||||
print "%s {}" % func
|
||||
other = True
|
||||
continue
|
||||
|
||||
# check for function assigment
|
||||
m = r4.match(line)
|
||||
|
||||
if m:
|
||||
name = m.group(1)
|
||||
args = m.group(2).split(',')
|
||||
func = "void JSF_" + string.replace(name, '.', '_') + " ("
|
||||
sep = ""
|
||||
|
||||
for a in args:
|
||||
a = a.strip()
|
||||
func = func + sep + "int " + a;
|
||||
sep = ", "
|
||||
|
||||
func = func + ")"
|
||||
|
||||
print "%s {}" % func
|
||||
other = True
|
||||
continue
|
||||
|
||||
# check for action definition
|
||||
m = r5.match(line)
|
||||
|
||||
if m:
|
||||
name = m.group(2)
|
||||
func = "void JSA_" + string.replace(name, '/', '_') + " ()"
|
||||
|
||||
print "%s {}" % func
|
||||
other = True
|
||||
continue
|
||||
|
||||
f.close()
|
Loading…
Reference in New Issue