Changeset 2101 for LMDZ5/trunk/tools


Ignore:
Timestamp:
Jul 24, 2014, 6:26:10 PM (10 years ago)
Author:
lguez
Message:

Exclude "out.def" of the comparison of ".def" files with
diffdef. "out.def" is neither an input file neither a file written by
IOIPSL like the files "used_*.def". So "out.def" contains some
duplicate lines with "used_guide.def", and the script diffdef would
signal that as an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/tools/diffdef.sh

    r2098 r2101  
    22# Author: Lionel GUEZ
    33
    4 # This script compares files "*.def" other than "traceur.def" in two
    5 # directories. The script uses GNU versions of the utilities cut, sort
    6 # and uniq.
     4# This script compares files "*.def" other than "traceur.def" and
     5# "out.def" in two directories. The script uses GNU versions of the
     6# utilities cut, sort and uniq.
    77
    88# See guide:
     
    3333  rm -f all.def
    3434  echo "def files in $my_directory:"
    35   ls !(traceur).def
     35  ls !(traceur|out).def
    3636
    3737  # Concatenate and format the def files:
    38   cat !(traceur).def | tr -d " " | grep -v -E '(^#|^!|INCLUDEDEF|^$)' \
    39       | tr '[:lower:]' '[:upper:]' | sed 's/=N$/=FALSE/' | sed 's/=Y$/=TRUE/' \
    40       | sort >all.def
     38  cat !(traceur|out).def | tr -d " " | grep -v -E '(^#|^!|INCLUDEDEF|^$)' \
     39      | tr '[:lower:]' '[:upper:]' | sed 's/=[NF]$/=FALSE/' \
     40      | sed 's/=[YT]$/=TRUE/' | sort >all.def
    4141
    4242  # Check that no variable is repeated:
Note: See TracChangeset for help on using the changeset viewer.