comparison artifacts/contrib/list-non-existant-outs.sh @ 8289:f12a5c55864d

Consider new SQ-diagrams in datacage config.
author "Tom Gottfried <tom@intevation.de>"
date Wed, 17 Sep 2014 13:24:13 +0200
parents b52d30e24e1a
children
comparison
equal deleted inserted replaced
8288:2f7f9ced46a5 8289:f12a5c55864d
7 cat $DIR/../doc/conf/meta-data.xml | \ 7 cat $DIR/../doc/conf/meta-data.xml | \
8 sed -n '/test="$out/p' | \ 8 sed -n '/test="$out/p' | \
9 sed "s/ *<dc:when test=\"\$out = '\(.*\)'\">/\1/" | \ 9 sed "s/ *<dc:when test=\"\$out = '\(.*\)'\">/\1/" | \
10 sort -u > /tmp/$tmpfile 10 sort -u > /tmp/$tmpfile
11 11
12 echo "WARNING:"
13 echo "Only tests having exactly the pattern \"\$out = 'outname'\" will be recognised!"
14 echo
12 echo "outs not used in any artifact-configuration:" 15 echo "outs not used in any artifact-configuration:"
13 for out in `cat /tmp/$tmpfile` 16 for out in `cat /tmp/$tmpfile`
14 do 17 do
15 count=`grep -l $out $DIR/../doc/conf/artifacts/*.xml | wc -l` 18 count=`grep -l $out $DIR/../doc/conf/artifacts/*.xml | wc -l`
16 if [ $count -lt 1 ] 19 if [ $count -lt 1 ]

http://dive4elements.wald.intevation.org