# HG changeset patch # User "Tom Gottfried " # Date 1410885226 -7200 # Node ID 3ecf38aa3d9aa147387da4e93fa7f19edea9b2ec # Parent a3ecddb5503f23d52fc5d068fc4b029cdc612c59 Crude script to find non-existant outs in meta-data.xml diff -r a3ecddb5503f -r 3ecf38aa3d9a artifacts/contrib/list-non-existant-outs.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/artifacts/contrib/list-non-existant-outs.sh Tue Sep 16 18:33:46 2014 +0200 @@ -0,0 +1,20 @@ +#!/bin/bash + +DIR=$(readlink -f `dirname $0`) + +# write all outs expected in datacage to temporary file +tmpfile=`uuid` +cat $DIR/../doc/conf/meta-data.xml | \ + sed -n '/test="$out/p' | \ + sed "s/ */\1/" | \ + sort -u > /tmp/$tmpfile + +echo "outs not used in any artifact-configuration:" +for out in `cat /tmp/$tmpfile` +do + count=`grep -l $out $DIR/../doc/conf/artifacts/*.xml | wc -l` + if [ $count -lt 1 ] + then + echo " $out" + fi +done