~etsf-io-developers/etsf-io/1.0

« back to all changes in this revision

Viewing changes to config/scripts/autogen_subroutines.py

  • Committer: Damien Caliste
  • Date: 2010-03-29 09:15:57 UTC
  • Revision ID: damien.caliste@cea.fr-20100329091557-d335qbkzhehebxf4
Change the makefile.am in doc to add automatically the generated html files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1647
1647
includes_am = ""
1648
1648
for filename in includes:
1649
1649
  includes_str += "  include \"%s\"\n" % filename
1650
 
  includes_am += "\\\n\t%s" % filename
 
1650
  includes_am += "\t%s \\\n" % filename
1651
1651
 
1652
1652
# Write the includes in the module file.
1653
1653
src = file("%s/etsf_io.f90" % (etsf_file_srcdir), "r").read()
1656
1656
out.write(src)
1657
1657
out.close()
1658
1658
 
1659
 
# Create theMakefile.am
 
1659
# Create the source and doc Makefile.am.
1660
1660
src = file("config/etsf/template.Makefile.am", "r").read()
1661
 
src = re.sub("@INCLUDED_FILES@", includes_am, src)
 
1661
src = re.sub("@INCLUDED_FILES@", includes_am[:-2], src)
1662
1662
out = file("%s/Makefile.am" % (etsf_file_srcdir), "w")
1663
1663
out.write(src)
1664
1664
out.close()
 
1665
src = file("config/etsf/template.doc_group_Makefile.am", "r").read()
 
1666
includes_am = re.sub(".f90", "_f90.html", includes_am)
 
1667
src = re.sub("@INCLUDED_FILES@\n", includes_am, src)
 
1668
out = file("doc/www/group_level/Makefile.am", "w")
 
1669
out.write(src)
 
1670
out.close()