Mercurial > dive4elements > river
comparison artifacts/contrib/list-non-existant-outs.sh @ 8283:dfdd006da30b
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 17 Sep 2014 09:04:30 +0200 |
parents | b52d30e24e1a |
children | f12a5c55864d |
comparison
equal
deleted
inserted
replaced
8282:b5bef15c982e | 8283:dfdd006da30b |
---|---|
1 #!/bin/bash | |
2 | |
3 DIR=$(readlink -f `dirname $0`) | |
4 | |
5 # write all outs expected in datacage to temporary file | |
6 tmpfile=`uuid` | |
7 cat $DIR/../doc/conf/meta-data.xml | \ | |
8 sed -n '/test="$out/p' | \ | |
9 sed "s/ *<dc:when test=\"\$out = '\(.*\)'\">/\1/" | \ | |
10 sort -u > /tmp/$tmpfile | |
11 | |
12 echo "outs not used in any artifact-configuration:" | |
13 for out in `cat /tmp/$tmpfile` | |
14 do | |
15 count=`grep -l $out $DIR/../doc/conf/artifacts/*.xml | wc -l` | |
16 if [ $count -lt 1 ] | |
17 then | |
18 echo " $out" | |
19 fi | |
20 done | |
21 | |
22 echo | |
23 echo "Caution: These might be set in gwt-client for inline datacage panels!" | |
24 echo |