Ignore:
Timestamp:
2018-09-20T18:06:07+02:00 (2 years ago)
Author:
nicolasmartin
Message:

Reorganisation for future addition of .rst files from users wiki extraction

  • Create root directories latex and rst for tidy up
  • Move namelists folder to the root with the aim to gather later all namelist groups here (OCE, ICE & TOP) Also building scripts have been modified so that figures is now expected to be present at the root
  • Create bin directory with namelist utilities (check and update)
  • Under rst, add 4 dummy files that would gather the whole documentation existing currently in users wiki
    • model_interfacing.rst
    • reference_configurations.rst
    • setup_configuration.rst
    • test_cases.rst
File:
1 copied

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/doc/PDF_creation.sh

    r10139 r10146  
    11#!/bin/sh 
    22 
    3 ./inc/clean.sh 
    4 ./inc/build.sh 
    53 
    6 cd tex_main 
    7 pdflatex -shell-escape NEMO_manual 
    8 cd - 
     4export opts='-shell-escape -interaction=nonstopmode' 
     5model='NEMO' 
     6 
     7clean() { 
     8    ## Delete latex build files 
     9    find latex -regextype posix-extended -regex ".*\.(aux|log|maf|mtc|out|toc).*" -exec rm {} \; 
     10 
     11    ## Remove 'minted' directories 
     12    find latex -type d -name '_minted*' -exec rm -r {} \; 
     13 
     14    ## HTML exports 
     15    find latex -type d -name 'html*'    -exec rm -r {} \; 
     16} 
     17 
     18build() { 
     19    cd latex/$1/main 
     20 
     21    latex     $opts              $1'_manual' > /dev/null 
     22    makeindex -s $1'_manual'.ist $1'_manual' > /dev/null 
     23    bibtex                       $1'_manual' > /dev/null 
     24    #latex     $opts              $1'_manual' > /dev/null 
     25    pdflatex  $opts              $1'_manual' > /dev/null 
     26 
     27    mv $1'_manual'.pdf ../../.. 
     28    cd - 
     29} 
     30 
     31clean 
     32build    $model 
    933 
    1034exit 0 
Note: See TracChangeset for help on using the changeset viewer.