Commit in LCDetectors/detectors on MAIN | |||
make_taglist.sh | +20 | added 1.1 |
JM: Add script to make the LCDetectors taglist.txt file for www-lcsim.
diff -N make_taglist.sh --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ make_taglist.sh 29 Aug 2006 19:45:22 -0000 1.1 @@ -0,0 +1,20 @@
+#!/bin/sh + +# +# Script to create the list of detector tags +# for www-lcsim. +# + +> taglist.txt + +for d in `find . -type d -mindepth 1 -maxdepth 1`; do + echo $d + if [ -d $d ]; then + if [ -e $d/compact.xml ]; then + echo $(basename $d) >> taglist.txt + fi + fi +done + +sort taglist.txt > taglist.txt.tmp +mv taglist.txt.tmp taglist.txt