New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 11831 for NEMO/branches/2019/dev_r11085_ASINTER-05_Brodeau_Advanced_Bulk/doc/tools/shr_func.sh – NEMO

Ignore:
Timestamp:
2019-10-29T18:14:49+01:00 (4 years ago)
Author:
laurent
Message:

Update the branch to r11830 of the trunk!

Location:
NEMO/branches/2019/dev_r11085_ASINTER-05_Brodeau_Advanced_Bulk/doc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11085_ASINTER-05_Brodeau_Advanced_Bulk/doc

    • Property svn:ignore deleted
    • Property svn:externals set to
      ^/utils/badges badges
      ^/utils/logos logos
  • NEMO/branches/2019/dev_r11085_ASINTER-05_Brodeau_Advanced_Bulk/doc/tools/shr_func.sh

    r11033 r11831  
    11#!/bin/sh 
    22 
    3  
    4 ## Default options for GNU find (Linux OS) 
    5 find_pre=''; find_suf='-regextype posix-extended' 
    6  
    7 ## Test OS to tweak the options in find command for working in extended mode everywhere 
    8 [ '$( uname )' = 'Darwin' ] && { find_pre='-E'; find_suf=''; } 
    9  
    103clean() { 
    11     ## Not sure if this step is needed, guess latexmk should be able to detect a change 
    12     printf "\t¤ Clean previous build\n" 
    13  
    14     ## Delete temp files from previous build 
    15     printf "\t  - delete all temporary files (.aux, .bbl, ...)\n" 
    16     find ${find_pre} latex/$1 ${find_suf}                                                                \ 
    17                          -regex ".*\.(aux|bbl|blg|dvi|fdb|fls|idx|ilg|ind|log|maf|mtc|out|pdf|toc)" \ 
    18                               -exec rm {} \; 
    19  
    20     ## Remove minted folders 
    21     printf "\t  - remove pygments input hash files (\"_minted\" folders)\n" 
    22     find latex/$1 -type d -name '_minted*' -exec rm -r {} \; 2> /dev/null 
    23  
    24     ## HTML exports 
    25     #printf '   - possible HTML export' 
    26     #find latex/$1 -type d -name 'html*'    -exec rm -r {} \; 
     4    printf "\t¤ Clean previous build" 
     5    find latex/$1/build -mindepth 1 -delete 
    276 
    287    echo 
     
    3110build() { 
    3211    printf "\t¤ Generation of the PDF format\n" 
    33     cd latex/$1/main 
    34     latexmk $opts $1'_manual' 1> /dev/null 
    35     [ -f $1'_manual'.pdf ] && mv $1'_manual'.pdf ../../.. 
    36     cd - > /dev/null 
     12    latexmk -r  ./latex/global/latexmk.pl -pdfxe ./latex/$1/main/$1_manual \ 
     13#  1> /dev/null 
     14    [ -f ./latex/$1/build/$1_manual.pdf ] && mv ./latex/$1/build/$1_manual.pdf . 
    3715    echo 
    3816} 
Note: See TracChangeset for help on using the changeset viewer.