3 #-------------------------------------------------------------------------------------- 
    5 #                Utility script for generation of HTML Doxygen main page. 
    7 #-------------------------------------------------------------------------------------- 
   12 if [ -z $JPP_DIR ]; 
then 
   13     echo "Variable JPP_DIR undefined." 
   17 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null 
   30 echo " * \mainpage Documentation" 
   33 echo " * ul.b { list-style-type: none; counter-reset: section; columns: ${NUMBER_OF_COLUMNS}; -moz-column-count: ${NUMBER_OF_COLUMNS}; -webkit-column-count: ${NUMBER_OF_COLUMNS}; column-count: ${NUMBER_OF_COLUMNS}; }" 
   39 echo " * <h2>Documents</h2>" 
   40 echo " * <ul class=\"b\">" 
   43 }\
">${file##*/}</a></li>" 
   52 echo " * <h2>Applications</h2>" 
   53 echo " * <ul class=\"b\">" 
   54 for file in `ls ${JPP_BIN}`; 
do 
   55     if [[ ! $file = *.sh && ! $file = *.csh ]]; 
then 
   56         echo " * <li><a href=\"#${file}\">${file}</a></li>" 
   65 echo " * <h2>Scripts</h2>" 
   66 echo " * <ul class=\"b\">" 
   67 for file in `ls ${JPP_BIN}`; 
do 
   68     if [[ $file = *.sh || $file = *.csh ]]; 
then 
   69         echo " * <li><a href=\"#${file}\">${file}</a></li>" 
   78 echo " * <h2>Examples</h2>" 
   79 echo " * <ul class=\"b\">" 
   80 for dir 
in `ls $JPP_DIR/examples`; 
do 
   81     echo " * <li><a href=\"#examples/${dir}\">${dir}</a></li>" 
   88 for file in `ls ${JPP_BIN}`; 
do 
   90     if [[ ! $file = *.sh && ! $file = *.csh ]]; 
then 
   92         source=`get_source ${
file}`
 
   95         echo " * <h4 id=\"${file}\">" 
   96         if [[ -
n "${source}" ]]; 
then 
   97             if [[ ${source} == *software* ]] && ( `ls $JPP_DIR/examples} >& /dev/
null` ); 
then 
   98                 source=${source##${JPP_DIR%/}/}
 
  102             echo " * \\\\endhtmlonly" 
  110         ${
file} -h! 2> /dev/
null | sed 
's/</\</g;s/>/\>/g' 
  112         echo " * <a href="#top
">Go back to top of page.</a>" 
  119 for file in `ls ${JPP_BIN}`; 
do 
  121     if [[ $file = *.sh || $file = *.csh ]]; 
then 
  123         source=`eval ls $JPP_DIR/software
 
  129                 source=${source##${JPP_DIR%/}/}
 
  133             echo " * \\\\endhtmlonly" 
  141         ${
file} -h! 2> /dev/
null | sed 
's/</\</g;s/>/\>/g' 
  143         echo " * <a href="#top
">Go back to top of page.</a>" 
  150 for dir 
in `ls $JPP_DIR/examples`; 
do 
  153     echo " * <h4 id=\"examples/${dir}\">${dir}</h4>" 
  154     echo " * <ul class=\"b\">" 
  155     for file in `find $JPP_DIR/examples/${dir}
 
  159     echo " * <
a href=
"#top">Go back to top of page.</
a>
" 
  161     for file in `find $JPP_DIR/examples/${dir}/* -maxdepth 0 -perm /+x`; do 
  163         if [[ ! $file = *.sh && ! $file = *.csh ]]; then 
  164             source=`get_source ${file}` 
  170         echo " * <h4 
id=\
"${file}\">" 
  171         if [[ -
n "${source}" ]]; 
then 
  172             if [[ ${source} == *examples* ]] && (`ls $JPP_DIR/software} >& /dev/
null` || `ls $JPP_DIR/examples/^${dir}/${source##*/} >& /dev/
null`); 
then 
  173                 source=${source##${JPP_DIR%/}/}
 
  177             echo " * \\\\endhtmlonly" 
  185         ${
file} -h! 2>&1 | sed 
's/</\</g;s/>/\>/g' 
  187         echo " * <a href="#top
">Go back to top of page.</a>" 
  191 echo " * \\\\endhtmlonly" 
then usage $script[< detector identifier >< run range >]< QA/QCfile > nExample script to produce data quality plots nWhen a detector identifier and run range are data are downloaded from the database nand subsequently stored in the given QA QC file
 
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null