Last change
on this file was
11004,
checked in by nicolasmartin, 2 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 | |
---|
9 | for 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 | |
---|
24 | done | sort -k2rn |
---|
25 | |
---|
26 | \rm nlst_*.txt |
---|
Note: See
TracBrowser
for help on using the repository browser.