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.
nlsts_releases.sh in NEMO/branches/2020/ticket2377/doc/tools – NEMO

source: NEMO/branches/2020/ticket2377/doc/tools/nlsts_releases.sh @ 12491

Last change on this file since 12491 was 11004, checked in by nicolasmartin, 5 years ago

Review of main building script

  • Exportig Python package checking to external script check_pkg.py for sharing it with the verification of deps for the user guide (sphinx, extension and theme)
  • Renaming to explicit manual_build.sh
  • Addition of basic checking for LaTeX installation (latexmk binary)
  • Implementation of loop and argument reading in order to use the same script for the 3 manuals
  • Improvment of code commentary
  • Property svn:executable set to *
File size: 809 bytes
Line 
1#!/bin/sh
2
3## Estimate changes in namelists between two releases
4#####################################################
5
6## Prerequisites: f90nml to parse Fortran namelists (http://f90nml.readthedocs.org)
7## Launch under ./doc, edit the path to previous namelists accordingly
8
9for nlst in ../../releases/release-3.6/DOC/Namelists/*; do
10
11    if [ -f namelists/$( basename $nlst ) ]; then
12        printf "%s: " $( basename $nlst )
13        f90nml namelists/$( basename $nlst ) | awk '/=/ { print $0 }' | sort > nlst_new.txt
14        f90nml                       $nlst   | awk '/=/ { print $0 }' | sort > nlst_old.txt
15
16        if [[ $( diff -q nlst_*.txt ) ]]; then
17            diff -y --suppress-common-lines nlst_*.txt | wc -l
18        else
19            echo 0
20        fi
21
22    fi
23
24done | sort -k2rn
25
26\rm nlst_*.txt
Note: See TracBrowser for help on using the repository browser.