From 59c37a79ff484cf99aa15d23726edaca9d72e5bd Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 14 May 2014 00:07:58 +0200 Subject: [PATCH] Update documentation --- scripts/update_README.py | 8 ++++++-- src/AOs/README.rst | 6 ++++-- src/Makefile.common | 8 ++------ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/update_README.py b/scripts/update_README.py index c89c1c15..811899d9 100755 --- a/scripts/update_README.py +++ b/scripts/update_README.py @@ -126,8 +126,12 @@ def update_documentation(data): inside = line.startswith(".SH Description") else: if line.startswith(".SH"): - return "".join(result) - result.append(" "+line.strip()+"\n") + break + result.append(" "+line.strip()) + + if result == []: + result = [" Undocumented"] + return "\n".join(result)+'\n' diff --git a/src/AOs/README.rst b/src/AOs/README.rst index 1070d856..378bf8ae 100644 --- a/src/AOs/README.rst +++ b/src/AOs/README.rst @@ -85,8 +85,10 @@ Documentation Number of primitives per atomic orbital `ao_prim_num_max `_ -None + Undocumented + `ao_prim_num_max_align `_ -None + Undocumented + diff --git a/src/Makefile.common b/src/Makefile.common index fa02f7ec..488d1bf5 100644 --- a/src/Makefile.common +++ b/src/Makefile.common @@ -85,11 +85,6 @@ $(info -----------------------------------------------) endif -# Update the README.rst file for GitHub, and git add it - -$(shell update_README.py) - - # Define the Makefile common variables and rules EZFIO_DIR=$(QPACKAGE_ROOT)/EZFIO @@ -116,7 +111,8 @@ LIB+=$(EZFIO) $(MKL) IRPF90+=$(patsubst %, -I %, $(INCLUDE_DIRS)) $(IRPF90_FLAGS) irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES $(wildcard *.py) - $(IRPF90) + - $(IRPF90) + - update_README.py Makefile.depend: Makefile $(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh