Changeset 2101 for LMDZ5/trunk/tools
- Timestamp:
- Jul 24, 2014, 6:26:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/tools/diffdef.sh
r2098 r2101 2 2 # Author: Lionel GUEZ 3 3 4 # This script compares files "*.def" other than "traceur.def" in two5 # directories. The script uses GNU versions of the utilities cut, sort6 # 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. 7 7 8 8 # See guide: … … 33 33 rm -f all.def 34 34 echo "def files in $my_directory:" 35 ls !(traceur ).def35 ls !(traceur|out).def 36 36 37 37 # 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 | s ort >all.def38 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 41 41 42 42 # Check that no variable is repeated:
Note: See TracChangeset
for help on using the changeset viewer.