# HG changeset patch # User Alpar Juttner # Date 1225905054 0 # Node ID 0b3b26cd1cea6bb9a28c4641d0e328be973790bb # Parent ed4c8506e151bb7c11faef6ed9b9509bccfdbce4 Better build system - configure script added - demo/*.cc are now compiled (the executables are in demo/build) - version number appears in the doc and automatically updates - the cross reference to the lemon doc can be relocated (e.g. to a local copy of the doc) - some repo reorganization has taken place - better .hgignore diff -r ed4c8506e151 -r 0b3b26cd1cea .hgignore --- a/.hgignore Mon Nov 03 23:46:30 2008 +0100 +++ b/.hgignore Wed Nov 05 17:10:54 2008 +0000 @@ -9,10 +9,15 @@ *.tar.* *.bak *.tag +*.tmp .dirstamp +Doxyfile +Makefile syntax: regexp (.*/)?\#[^/]*\#$ +(.*/)?\.\#[^/]*$ ^html/.* ^gen-images/.* ^gen-dox/.* +^demo/build/.* \ No newline at end of file diff -r ed4c8506e151 -r 0b3b26cd1cea Doxyfile --- a/Doxyfile Mon Nov 03 23:46:30 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,260 +0,0 @@ -# Doxyfile 1.5.7.1 - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- -DOXYFILE_ENCODING = UTF-8 -PROJECT_NAME = "LEMON Tutorial" -PROJECT_NUMBER = 0.1 -OUTPUT_DIRECTORY = -CREATE_SUBDIRS = NO -OUTPUT_LANGUAGE = English -BRIEF_MEMBER_DESC = YES -REPEAT_BRIEF = NO -ABBREVIATE_BRIEF = -ALWAYS_DETAILED_SEC = NO -INLINE_INHERITED_MEMB = NO -FULL_PATH_NAMES = YES -STRIP_FROM_PATH = ./ -STRIP_FROM_INC_PATH = ./ -SHORT_NAMES = YES -JAVADOC_AUTOBRIEF = NO -QT_AUTOBRIEF = NO -MULTILINE_CPP_IS_BRIEF = NO -INHERIT_DOCS = NO -SEPARATE_MEMBER_PAGES = NO -TAB_SIZE = 8 -ALIASES = -OPTIMIZE_OUTPUT_FOR_C = NO -OPTIMIZE_OUTPUT_JAVA = NO -OPTIMIZE_FOR_FORTRAN = NO -OPTIMIZE_OUTPUT_VHDL = NO -BUILTIN_STL_SUPPORT = YES -CPP_CLI_SUPPORT = NO -SIP_SUPPORT = NO -IDL_PROPERTY_SUPPORT = YES -DISTRIBUTE_GROUP_DOC = NO -SUBGROUPING = YES -TYPEDEF_HIDES_STRUCT = NO -SYMBOL_CACHE_SIZE = 0 -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- -EXTRACT_ALL = NO -EXTRACT_PRIVATE = YES -EXTRACT_STATIC = YES -EXTRACT_LOCAL_CLASSES = NO -EXTRACT_LOCAL_METHODS = NO -EXTRACT_ANON_NSPACES = NO -HIDE_UNDOC_MEMBERS = YES -HIDE_UNDOC_CLASSES = YES -HIDE_FRIEND_COMPOUNDS = NO -HIDE_IN_BODY_DOCS = NO -INTERNAL_DOCS = NO -CASE_SENSE_NAMES = YES -HIDE_SCOPE_NAMES = YES -SHOW_INCLUDE_FILES = YES -INLINE_INFO = YES -SORT_MEMBER_DOCS = NO -SORT_BRIEF_DOCS = NO -SORT_GROUP_NAMES = NO -SORT_BY_SCOPE_NAME = NO -GENERATE_TODOLIST = YES -GENERATE_TESTLIST = YES -GENERATE_BUGLIST = YES -GENERATE_DEPRECATEDLIST= YES -ENABLED_SECTIONS = -MAX_INITIALIZER_LINES = 5 -SHOW_USED_FILES = NO -SHOW_DIRECTORIES = NO -SHOW_FILES = NO -SHOW_NAMESPACES = NO -FILE_VERSION_FILTER = -LAYOUT_FILE = ./DoxygenLayout.xml -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- -QUIET = NO -WARNINGS = YES -WARN_IF_UNDOCUMENTED = YES -WARN_IF_DOC_ERROR = YES -WARN_NO_PARAMDOC = NO -WARN_FORMAT = "$file:$line: $text" -WARN_LOGFILE = doxygen.log -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- -INPUT = ./gen-dox \ - ./demo -INPUT_ENCODING = UTF-8 -FILE_PATTERNS = *.h \ - *.cc \ - *.dox -RECURSIVE = NO -EXCLUDE = -EXCLUDE_SYMLINKS = NO -EXCLUDE_PATTERNS = -EXCLUDE_SYMBOLS = -EXAMPLE_PATH = . \ - ./demo -EXAMPLE_PATTERNS = -EXAMPLE_RECURSIVE = NO -IMAGE_PATH = ./images \ - ./gen-images -INPUT_FILTER = -FILTER_PATTERNS = -FILTER_SOURCE_FILES = NO -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- -SOURCE_BROWSER = NO -INLINE_SOURCES = NO -STRIP_CODE_COMMENTS = YES -REFERENCED_BY_RELATION = NO -REFERENCES_RELATION = NO -REFERENCES_LINK_SOURCE = YES -USE_HTAGS = NO -VERBATIM_HEADERS = NO -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- -ALPHABETICAL_INDEX = YES -COLS_IN_ALPHA_INDEX = 2 -IGNORE_PREFIX = -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- -GENERATE_HTML = YES -HTML_OUTPUT = html -HTML_FILE_EXTENSION = .html -HTML_HEADER = -HTML_FOOTER = -HTML_STYLESHEET = -HTML_ALIGN_MEMBERS = YES -HTML_DYNAMIC_SECTIONS = NO -GENERATE_DOCSET = NO -DOCSET_FEEDNAME = "Doxygen generated docs" -DOCSET_BUNDLE_ID = org.doxygen.Project -GENERATE_HTMLHELP = NO -CHM_FILE = -HHC_LOCATION = -GENERATE_CHI = NO -CHM_INDEX_ENCODING = -BINARY_TOC = NO -TOC_EXPAND = NO -GENERATE_QHP = NO -QCH_FILE = -QHP_NAMESPACE = org.doxygen.Project -QHP_VIRTUAL_FOLDER = doc -QHG_LOCATION = -DISABLE_INDEX = NO -ENUM_VALUES_PER_LINE = 4 -GENERATE_TREEVIEW = NO -TREEVIEW_WIDTH = 250 -FORMULA_FONTSIZE = 10 -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- -GENERATE_LATEX = NO -LATEX_OUTPUT = latex -LATEX_CMD_NAME = latex -MAKEINDEX_CMD_NAME = makeindex -COMPACT_LATEX = YES -PAPER_TYPE = a4wide -EXTRA_PACKAGES = amsmath \ - amssymb -LATEX_HEADER = -PDF_HYPERLINKS = YES -USE_PDFLATEX = YES -LATEX_BATCHMODE = NO -LATEX_HIDE_INDICES = NO -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- -GENERATE_RTF = NO -RTF_OUTPUT = rtf -COMPACT_RTF = NO -RTF_HYPERLINKS = NO -RTF_STYLESHEET_FILE = -RTF_EXTENSIONS_FILE = -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- -GENERATE_MAN = NO -MAN_OUTPUT = man -MAN_EXTENSION = .3 -MAN_LINKS = NO -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- -GENERATE_XML = NO -XML_OUTPUT = xml -XML_SCHEMA = -XML_DTD = -XML_PROGRAMLISTING = YES -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- -GENERATE_AUTOGEN_DEF = NO -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- -GENERATE_PERLMOD = NO -PERLMOD_LATEX = NO -PERLMOD_PRETTY = YES -PERLMOD_MAKEVAR_PREFIX = -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- -ENABLE_PREPROCESSING = YES -MACRO_EXPANSION = NO -EXPAND_ONLY_PREDEF = NO -SEARCH_INCLUDES = YES -INCLUDE_PATH = -INCLUDE_FILE_PATTERNS = -PREDEFINED = DOXYGEN -EXPAND_AS_DEFINED = -SKIP_FUNCTION_MACROS = YES -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- -TAGFILES = "./libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3" \ - "./lemon.tag = http://lemon.cs.elte.hu/pub/doc/1.0" -GENERATE_TAGFILE = -ALLEXTERNALS = NO -EXTERNAL_GROUPS = NO -PERL_PATH = /usr/bin/perl -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- -CLASS_DIAGRAMS = NO -MSCGEN_PATH = -HIDE_UNDOC_RELATIONS = YES -HAVE_DOT = YES -DOT_FONTNAME = FreeSans -DOT_FONTSIZE = 10 -DOT_FONTPATH = -CLASS_GRAPH = YES -COLLABORATION_GRAPH = NO -GROUP_GRAPHS = NO -UML_LOOK = NO -TEMPLATE_RELATIONS = NO -INCLUDE_GRAPH = NO -INCLUDED_BY_GRAPH = NO -CALL_GRAPH = NO -CALLER_GRAPH = NO -GRAPHICAL_HIERARCHY = NO -DIRECTORY_GRAPH = NO -DOT_IMAGE_FORMAT = png -DOT_PATH = -DOTFILE_DIRS = -DOT_GRAPH_MAX_NODES = 50 -MAX_DOT_GRAPH_DEPTH = 0 -DOT_TRANSPARENT = NO -DOT_MULTI_TARGETS = NO -GENERATE_LEGEND = YES -DOT_CLEANUP = YES -#--------------------------------------------------------------------------- -# Configuration::additions related to the search engine -#--------------------------------------------------------------------------- -SEARCHENGINE = NO diff -r ed4c8506e151 -r 0b3b26cd1cea Doxyfile.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Doxyfile.in Wed Nov 05 17:10:54 2008 +0000 @@ -0,0 +1,260 @@ +# Doxyfile 1.5.7.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +DOXYFILE_ENCODING = UTF-8 +PROJECT_NAME = "LEMON Tutorial" +PROJECT_NUMBER = @version@ +OUTPUT_DIRECTORY = +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = NO +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = YES +STRIP_FROM_PATH = ./ +STRIP_FROM_INC_PATH = ./ +SHORT_NAMES = YES +JAVADOC_AUTOBRIEF = NO +QT_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +INHERIT_DOCS = NO +SEPARATE_MEMBER_PAGES = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = NO +OPTIMIZE_OUTPUT_JAVA = NO +OPTIMIZE_FOR_FORTRAN = NO +OPTIMIZE_OUTPUT_VHDL = NO +BUILTIN_STL_SUPPORT = YES +CPP_CLI_SUPPORT = NO +SIP_SUPPORT = NO +IDL_PROPERTY_SUPPORT = YES +DISTRIBUTE_GROUP_DOC = NO +SUBGROUPING = YES +TYPEDEF_HIDES_STRUCT = NO +SYMBOL_CACHE_SIZE = 0 +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = NO +EXTRACT_PRIVATE = YES +EXTRACT_STATIC = YES +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +EXTRACT_ANON_NSPACES = NO +HIDE_UNDOC_MEMBERS = YES +HIDE_UNDOC_CLASSES = YES +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = NO +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = YES +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = NO +SORT_BRIEF_DOCS = NO +SORT_GROUP_NAMES = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 5 +SHOW_USED_FILES = NO +SHOW_DIRECTORIES = NO +SHOW_FILES = NO +SHOW_NAMESPACES = NO +FILE_VERSION_FILTER = +LAYOUT_FILE = ./DoxygenLayout.xml +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = doxygen.log +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = ./gen-dox \ + ./demo +INPUT_ENCODING = UTF-8 +FILE_PATTERNS = *.h \ + *.cc \ + *.dox +RECURSIVE = NO +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXCLUDE_SYMBOLS = +EXAMPLE_PATH = . \ + ./demo +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = ./images \ + ./gen-images +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = NO +REFERENCES_RELATION = NO +REFERENCES_LINK_SOURCE = YES +USE_HTAGS = NO +VERBATIM_HEADERS = NO +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = YES +COLS_IN_ALPHA_INDEX = 2 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +HTML_DYNAMIC_SECTIONS = NO +GENERATE_DOCSET = NO +DOCSET_FEEDNAME = "Doxygen generated docs" +DOCSET_BUNDLE_ID = org.doxygen.Project +GENERATE_HTMLHELP = NO +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +CHM_INDEX_ENCODING = +BINARY_TOC = NO +TOC_EXPAND = NO +GENERATE_QHP = NO +QCH_FILE = +QHP_NAMESPACE = org.doxygen.Project +QHP_VIRTUAL_FOLDER = doc +QHG_LOCATION = +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = NO +TREEVIEW_WIDTH = 250 +FORMULA_FONTSIZE = 10 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = YES +PAPER_TYPE = a4wide +EXTRA_PACKAGES = amsmath \ + amssymb +LATEX_HEADER = +PDF_HYPERLINKS = YES +USE_PDFLATEX = YES +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = DOXYGEN +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = "./libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3" \ + "./lemon.tag = @lemon_doc_prefix@" +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = NO +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = NO +MSCGEN_PATH = +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = YES +DOT_FONTNAME = FreeSans +DOT_FONTSIZE = 10 +DOT_FONTPATH = +CLASS_GRAPH = YES +COLLABORATION_GRAPH = NO +GROUP_GRAPHS = NO +UML_LOOK = NO +TEMPLATE_RELATIONS = NO +INCLUDE_GRAPH = NO +INCLUDED_BY_GRAPH = NO +CALL_GRAPH = NO +CALLER_GRAPH = NO +GRAPHICAL_HIERARCHY = NO +DIRECTORY_GRAPH = NO +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +DOT_GRAPH_MAX_NODES = 50 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r ed4c8506e151 -r 0b3b26cd1cea Makefile --- a/Makefile Mon Nov 03 23:46:30 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -EPS_IMAGES18 = - -EPS_IMAGES = \ - $(EPS_IMAGES18) - -PNG_IMAGES = \ - $(EPS_IMAGES:%.eps=gen-images/%.png) - -GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 - -all: html - -$(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps - -mkdir gen-images - $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $< - -html: $(PNG_IMAGES) - -mkdir gen-dox - ./titlegen.py - doxygen Doxyfile - -clean: - -rm -rf html - -rm -f doxygen.log - -rm -f $(PNG_IMAGES) - -rm -rf gen-images - -update-external-tags: - wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/libstdc++.tag && \ - mv libstdc++.tag.tmp libstdc++.tag || \ - rm libstdc++.tag.tmp - wget -O lemon.tag.tmp http://lemon.cs.elte.hu/pub/doc/1.0/lemon.tag && \ - mv lemon.tag.tmp lemon.tag || \ - rm lemon.tag.tmp - -.PHONY: update-external-tags html diff -r ed4c8506e151 -r 0b3b26cd1cea Makefile.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.in Wed Nov 05 17:10:54 2008 +0000 @@ -0,0 +1,59 @@ +EPS_IMAGES18 = + +EPS_IMAGES = \ + $(EPS_IMAGES18) + +PNG_IMAGES = \ + $(EPS_IMAGES:%.eps=gen-images/%.png) + +DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc)) + +GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 + +all: demos html + +$(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps + -mkdir -p gen-images + $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $< + +html: Doxyfile-gen $(PNG_IMAGES) + -mkdir -p gen-dox + ./scripts/titlegen.py + doxygen Doxyfile + +demos: $(DEMOS) + +Doxyfile-gen: + sed -e 's/@version@/'`./scripts/chg-len.py`'/g' \ + -e 's/@lemon_doc_prefix@/@make_lemon_doc_prefix@/g' \ + < Doxyfile.in >Doxyfile + +clean: + -rm -rf html + -rm -f doxygen.log + -rm -f $(PNG_IMAGES) + -rm -rf gen-images + -rm -rf $(DEMOS) + +update-external-tags: + wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/libstdc++.tag && \ + mv libstdc++.tag.tmp libstdc++.tag || \ + rm libstdc++.tag.tmp + wget -O lemon.tag.tmp http://lemon.cs.elte.hu/pub/doc/1.0/lemon.tag && \ + mv lemon.tag.tmp lemon.tag || \ + rm lemon.tag.tmp + + +$(DEMOS): demo/build/%: demo/%.cc + -mkdir -p demo/build + g++ -o $@ @lemon_cflags@ @lemon_libs@ \ + -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy \ + -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings \ + -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align \ + -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing \ + -Wold-style-cast -Wno-unknown-pragmas \ + -ggdb -O0 $< + + +.PHONY: update-external-tags html demos Doxyfile-gen + diff -r ed4c8506e151 -r 0b3b26cd1cea configure --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configure Wed Nov 05 17:10:54 2008 +0000 @@ -0,0 +1,68 @@ +#!/bin/bash + +quiet=0 +function quiet { [[ $quiet == 1 ]]; } + +if [[ "$1" == "-q" ]]; then + quiet=1 + shift +fi + +prev= +for option +do + if test -n "$prev" + then + eval "$prev=\$option" + prev= + continue + fi + + optarg=`expr "x$option" : 'x[^=]*=\(.*\)'` + + case $option in + --lemon-doc-prefix) + prev=lemon_doc_prefix ;; + --lemon-doc-prefix=*) + lemon_doc_prefix=$optarg ;; + --help | -h) + cat << EOF +Usage: $0 [OPTION] + +Options: + -h, --help display this help and exit + --lemon-doc-prefix=loc The location of the lemon doc. By default it is + http://lemon.cs.elte.hu/pub/doc/1.0 + +Expamle: + $0 --lemon-doc-prefix=file://usr/local/share/doc/lemon/docs/ +EOF + exit 0 + ;; + + *) + cat << EOF >&2 +$0: unrecognized option: $option +Try \`$0 --help' for more information. +EOF + exit 1 + ;; + + esac +done + + +if test -z "$lemon_doc_prefix" +then + lemon_doc_prefix='http://lemon.cs.elte.hu/pub/doc/1.0' +fi +lemon_doc_prefix=$(echo $lemon_doc_prefix|sed 's/\//\\\\\\\//g') + +lemon_cflags=$(pkg-config --cflags lemon|sed 's/\//\\\//g') +lemon_libs=$(pkg-config --libs lemon|sed 's/\//\\\//g') + + +sed -e "s/@lemon_cflags@/${lemon_cflags}/g" \ + -e "s/@lemon_libs@/${lemon_libs}/g" \ + -e "s/@make_lemon_doc_prefix@/${lemon_doc_prefix}/g" \ + < Makefile.in > Makefile diff -r ed4c8506e151 -r 0b3b26cd1cea scripts/chg-len.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/chg-len.py Wed Nov 05 17:10:54 2008 +0000 @@ -0,0 +1,40 @@ +#! /usr/bin/env python + +import sys +import os + +if len(sys.argv)>1 and sys.argv[1] in ["-h","--help"]: + print """ +This utility just prints the length of the longest path +in the revision graph from revison 0 to the current one. +""" + exit(0) +plist = os.popen("HGRCPATH='' hg parents --template='{rev}\n'").readlines() +if len(plist)>1: + print "You are in the process of merging" + exit(1) +PAR = int(plist[0]) + +f = os.popen("HGRCPATH='' hg log -r 0:tip --template='{rev} {parents}\n'").\ + readlines() +REV = -1 +lengths=[] +for l in f: + REV+=1 + s = l.split() + rev = int(s[0]) + if REV != rev: + print "Something is seriously wrong" + exit(1) + if len(s) == 1: + par1 = par2 = rev - 1 + elif len(s) == 2: + par1 = par2 = int(s[1].split(":")[0]) + else: + par1 = int(s[1].split(":")[0]) + par2 = int(s[2].split(":")[0]) + if rev == 0: + lengths.append(0) + else: + lengths.append(max(lengths[par1],lengths[par2])+1) +print lengths[PAR] diff -r ed4c8506e151 -r 0b3b26cd1cea scripts/titlegen.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/titlegen.py Wed Nov 05 17:10:54 2008 +0000 @@ -0,0 +1,79 @@ +#! /usr/bin/env python + +import sys +import os +import copy +import re + +def sec_inc(section, lev): + while len(section)0: + lev=len(sl[0]) + section=sec_inc(section,lev) + t_sec=copy.copy(section) + t_link=sl[1]; + print format_sec(t_sec),t_link + ind[t_link]=[t_sec,'',''] + if lev==1: + ind[t_link][1]=prev_page + if prev_page: + ind[prev_page][2]=t_link + prev_page=t_link + toc[format_sec(t_sec)]=t_link + +for doxfile in os.listdir('.'): + if doxfile[-4:]=='.dox': + print 'Generate ',doxfile + page='' + fo=open(os.path.join("gen-dox",doxfile),"w") + for l in open(doxfile).readlines(): + gr = re.match(r"(^[[]PAGE[]].*[[]PAGE[]])?(^[[]SEC[]].*[[]SEC[]])?(^[[]TRAILER[]])?(^[[]TOC[]])?(.*)$", l).groups() + if gr[0]: + page=gr[0][6:-6] + fo.write("\page %s %s%s\n"%(page, + format_sec(ind[page][0]),gr[4])) + elif gr[1]: + sec=gr[1][5:-5] + fo.write("\section %s %s%s\n"%(sec, + format_sec(ind[sec][0]),gr[4])) + elif gr[2]: + prev_page=ind[page][1] + if prev_page: + prev_str= ( '<< \\ref '+prev_page+' ') + else: + prev_str='' + next_page=ind[page][2] + if next_page: + next_str= ( ' \\ref '+next_page+' >>') + else: + next_str='' + fo.write('%s| \\ref toc "Home" |%s\n'%\ + (prev_str,next_str)) + elif gr[3]: + secs = [ x for x in toc] + secs.sort() + for num in secs: + fo.write("%s - \\ref %s\n"%(' '*((len(ind[toc[num]][0]))), + toc[num])) + else: + fo.write(gr[4]+'\n') + fo.close() diff -r ed4c8506e151 -r 0b3b26cd1cea titlegen.py --- a/titlegen.py Mon Nov 03 23:46:30 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -#! /usr/bin/env python - -import sys -import os -import copy -import re - -def sec_inc(section, lev): - while len(section)0: - lev=len(sl[0]) - section=sec_inc(section,lev) - t_sec=copy.copy(section) - t_link=sl[1]; - print format_sec(t_sec),t_link - ind[t_link]=[t_sec,'',''] - if lev==1: - ind[t_link][1]=prev_page - if prev_page: - ind[prev_page][2]=t_link - prev_page=t_link - toc[format_sec(t_sec)]=t_link - -for doxfile in os.listdir('.'): - if doxfile[-4:]=='.dox': - print 'Generate ',doxfile - page='' - fo=open(os.path.join("gen-dox",doxfile),"w") - for l in open(doxfile).readlines(): - gr = re.match(r"(^[[]PAGE[]].*[[]PAGE[]])?(^[[]SEC[]].*[[]SEC[]])?(^[[]TRAILER[]])?(^[[]TOC[]])?(.*)$", l).groups() - if gr[0]: - page=gr[0][6:-6] - fo.write("\page %s %s%s\n"%(page, - format_sec(ind[page][0]),gr[4])) - elif gr[1]: - sec=gr[1][5:-5] - fo.write("\section %s %s%s\n"%(sec, - format_sec(ind[sec][0]),gr[4])) - elif gr[2]: - prev_page=ind[page][1] - if prev_page: - prev_str= ( '<< \\ref '+prev_page+' ') - else: - prev_str='' - next_page=ind[page][2] - if next_page: - next_str= ( ' \\ref '+next_page+' >>') - else: - next_str='' - fo.write('%s| \\ref toc "Home" |%s\n'%\ - (prev_str,next_str)) - elif gr[3]: - secs = [ x for x in toc] - secs.sort() - for num in secs: - fo.write("%s - \\ref %s\n"%(' '*((len(ind[toc[num]][0]))), - toc[num])) - else: - fo.write(gr[4]+'\n') - fo.close()