Mercurial > dive4elements > river
annotate artifacts/contrib/list-non-existant-outs.sh @ 8755:30b1ddadf275
(issue1801) Unify reference gauge finding code
The basic way as described in the method comment of the
determineRefGauge method is now used in the WINFOArtifact,
MainValuesService and RiverUtils.getGauge method.
RiverUtils.getGauge previously just returned the first
gauge found. While this is now a behavior change I believe
that it is always more correct then the undeterministic
behavior of the previous implmenentation.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 24 Jun 2015 14:07:26 +0200 |
parents | f12a5c55864d |
children |
rev | line source |
---|---|
8278
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
1 #!/bin/bash |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
2 |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
3 DIR=$(readlink -f `dirname $0`) |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
4 |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
5 # write all outs expected in datacage to temporary file |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
6 tmpfile=`uuid` |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
7 cat $DIR/../doc/conf/meta-data.xml | \ |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
8 sed -n '/test="$out/p' | \ |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
9 sed "s/ *<dc:when test=\"\$out = '\(.*\)'\">/\1/" | \ |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
10 sort -u > /tmp/$tmpfile |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
11 |
8289
f12a5c55864d
Consider new SQ-diagrams in datacage config.
"Tom Gottfried <tom@intevation.de>"
parents:
8279
diff
changeset
|
12 echo "WARNING:" |
f12a5c55864d
Consider new SQ-diagrams in datacage config.
"Tom Gottfried <tom@intevation.de>"
parents:
8279
diff
changeset
|
13 echo "Only tests having exactly the pattern \"\$out = 'outname'\" will be recognised!" |
f12a5c55864d
Consider new SQ-diagrams in datacage config.
"Tom Gottfried <tom@intevation.de>"
parents:
8279
diff
changeset
|
14 echo |
8278
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
15 echo "outs not used in any artifact-configuration:" |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
16 for out in `cat /tmp/$tmpfile` |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
17 do |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
18 count=`grep -l $out $DIR/../doc/conf/artifacts/*.xml | wc -l` |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
19 if [ $count -lt 1 ] |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
20 then |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
21 echo " $out" |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
22 fi |
3ecf38aa3d9a
Crude script to find non-existant outs in meta-data.xml
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
23 done |
8279
b52d30e24e1a
Outs might be set in the client.
"Tom Gottfried <tom@intevation.de>"
parents:
8278
diff
changeset
|
24 |
b52d30e24e1a
Outs might be set in the client.
"Tom Gottfried <tom@intevation.de>"
parents:
8278
diff
changeset
|
25 echo |
b52d30e24e1a
Outs might be set in the client.
"Tom Gottfried <tom@intevation.de>"
parents:
8278
diff
changeset
|
26 echo "Caution: These might be set in gwt-client for inline datacage panels!" |
b52d30e24e1a
Outs might be set in the client.
"Tom Gottfried <tom@intevation.de>"
parents:
8278
diff
changeset
|
27 echo |