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 
   19 if ( do_usage $* ); 
then 
   29 echo " * \mainpage Documentation" 
   32 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}; }" 
   38 echo " * <h2>Documents</h2>" 
   39 echo " * <ul class=\"b\">" 
   42 }\
">${file##*/}</a></li>" 
   51 echo " * <h2>Applications</h2>" 
   52 echo " * <ul class=\"b\">" 
   53 for file in `ls ${JPP_BIN}`; 
do 
   54     if [[ ! $file = *.sh && ! $file = *.csh ]]; 
then 
   55         echo " * <li><a href=\"#${file}\">${file}</a></li>" 
   64 echo " * <h2>Scripts</h2>" 
   65 echo " * <ul class=\"b\">" 
   66 for file in `ls ${JPP_BIN}`; 
do 
   67     if [[ $file = *.sh || $file = *.csh ]]; 
then 
   68         echo " * <li><a href=\"#${file}\">${file}</a></li>" 
   77 echo " * <h2>Examples</h2>" 
   78 echo " * <ul class=\"b\">" 
   79 for dir 
in `ls $JPP_DIR/examples`; 
do 
   80     echo " * <li><a href=\"#examples/${dir}\">${dir}</a></li>" 
   87 for file in `ls ${JPP_BIN}`; 
do 
   89     if [[ ! $file = *.sh && ! $file = *.csh ]]; 
then 
   91         source=`get_source ${
file}`
 
   94         echo " * <h4 id=\"${file}\">" 
   95         if [[ -
n "${source}" ]]; 
then 
   96             if [[ ${source} == *software* ]] && ( `ls $JPP_DIR/examples} >& /dev/
null` ); 
then 
   97                 source=${source##${JPP_DIR%/}/}
 
  101             echo " * \\\\endhtmlonly" 
  109         ${
file} -h! 2> /dev/
null | sed 
's/</\</g;s/>/\>/g' 
  111         echo " * <a href="#top
">Go back to top of page.</a>" 
  118 for file in `ls ${JPP_BIN}`; 
do 
  120     if [[ $file = *.sh || $file = *.csh ]]; 
then 
  122         source=`eval ls $JPP_DIR/software
 
  128                 source=${source##${JPP_DIR%/}/}
 
  132             echo " * \\\\endhtmlonly" 
  140         ${
file} -h! 2> /dev/
null | sed 
's/</\</g;s/>/\>/g' 
  142         echo " * <a href="#top
">Go back to top of page.</a>" 
  149 for dir 
in `ls $JPP_DIR/examples`; 
do 
  152     echo " * <h4 id=\"examples/${dir}\">${dir}</h4>" 
  153     echo " * <ul class=\"b\">" 
  154     for file in `find $JPP_DIR/examples/${dir}
 
  158     echo " * <
a href=
"#top">Go back to top of page.</
a>
" 
  160     for file in `find $JPP_DIR/examples/${dir}/* -maxdepth 0 -perm /+x`; do 
  162         if [[ ! $file = *.sh && ! $file = *.csh ]]; then 
  163             source=`get_source ${file}` 
  169         echo " * <h4 
id=\
"${file}\">" 
  170         if [[ -
n "${source}" ]]; 
then 
  171             if [[ ${source} == *examples* ]] && ( `ls $JPP_DIR/software} >& /dev/
null` ); 
then 
  172                 source=${source##${JPP_DIR%/}/}
 
  176             echo " * \\\\endhtmlonly" 
  184         ${
file} -h! 2>&1 | sed 
's/</\</g;s/>/\>/g' 
  186         echo " * <a href="#top
">Go back to top of page.</a>" 
  190 echo " * \\\\endhtmlonly" 
void set_variable(const std::string &name, const std::string &value)
Set environment variable. 
 
then usage $script< string identifier >< detectorfile > input file(toashort file)+" "\nNote that the input files and toashort files should be one-to-one related." fi if (( $
 
alias put_queue eval echo n
 
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null