Jpp  test_elongated_shower_pde
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
doxygen.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 #--------------------------------------------------------------------------------------
4 #
5 # Utility script for generation of HTML Doxygen main page.
6 #
7 #--------------------------------------------------------------------------------------
8 # \author mdejong
9 #
10 script=${0##*/}
11 
12 if [ -z $JPP_DIR ]; then
13  echo "Variable JPP_DIR undefined."
14  exit 1
15 fi
16 
17 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
18 
19 if do_usage $*; then
20  usage "$script"
21 fi
22 
23 setopt +o nomatch
24 
25 set_variable NUMBER_OF_COLUMNS 3
26 
27 
28 echo "/**"
29 echo " * \mainpage Documentation"
30 echo " * \htmlonly"
31 echo " * <style>"
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}; }"
33 echo " * </style>"
34 
35 # Documents
36 
37 echo " * <hr>"
38 echo " * <h2>Documents</h2>"
39 echo " * <ul class=\"b\">"
40 for file in `ls ${JPP_DOC}/*`; do
41  if [ -f ${file} ]; then
42  echo " * <li><a href=\"${file##*/}\">${file##*/}</a></li>"
43  fi
44 done
45 echo " * </ul>"
46 
47 
48 # Applications header
49 
50 echo " * <hr>"
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>"
56  fi
57 done
58 echo " * </ul>"
59 
60 
61 # Scripts header
62 
63 echo " * <hr>"
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>"
69  fi
70 done
71 echo " * </ul>"
72 
73 
74 # Examples header
75 
76 echo " * <hr>"
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>"
81 done
82 echo " * </ul>"
83 
84 
85 # Applications data
86 
87 for file in `ls ${JPP_BIN}`; do
88 
89  if [[ ! $file = *.sh && ! $file = *.csh ]]; then
90 
91  source=`get_source ${file}`
92 
93  echo " * <hr>"
94  echo " * <h4 id=\"${file}\">"
95  if [[ -n "${source}" ]]; then
96  if [[ ${source} == *software* ]] && ( `ls $JPP_DIR/examples/*/${source##*/} >& /dev/null` ); then
97  source=${source##${JPP_DIR%/}/}
98  else
99  source=${source##*/}
100  fi
101  echo " * \\\\endhtmlonly"
102  echo " * ${source}"
103  echo " * \htmlonly"
104  else
105  echo " * ${file}"
106  fi
107  echo " * </h4>"
108  echo " * <pre>"
109  ${file} -h! 2> /dev/null | sed 's/</\&lt;/g;s/>/\&gt;/g'
110  echo " * </pre>"
111  echo " * <a href="#top">Go back to top of page.</a>"
112  fi
113 done
114 
115 
116 # Scripts data
117 
118 for file in `ls ${JPP_BIN}`; do
119 
120  if [[ $file = *.sh || $file = *.csh ]]; then
121 
122  source=`eval ls $JPP_DIR/software/*/$file`
123 
124  echo " * <hr>"
125  echo " * <h4 id=\"${file}\">"
126  if [[ -n "${source}" ]]; then
127  if [[ ${source} == *software* ]] && ( `ls $JPP_DIR/examples/*/${source##*/} >& /dev/null` ); then
128  source=${source##${JPP_DIR%/}/}
129  else
130  source=${source##*/}
131  fi
132  echo " * \\\\endhtmlonly"
133  echo " * ${source}"
134  echo " * \htmlonly"
135  else
136  echo " * ${file}"
137  fi
138  echo " * </h4>"
139  echo " * <pre>"
140  ${file} -h! 2> /dev/null | sed 's/</\&lt;/g;s/>/\&gt;/g'
141  echo " * </pre>"
142  echo " * <a href="#top">Go back to top of page.</a>"
143  fi
144 done
145 
146 
147 # Examples data
148 
149 for dir in `ls $JPP_DIR/examples`; do
150 
151  echo " * <hr>"
152  echo " * <h4 id=\"examples/${dir}\">${dir}</h4>"
153  echo " * <ul class=\"b\">"
154  for file in `find $JPP_DIR/examples/${dir}/* -maxdepth 0 -perm /+x`; do
155  echo " * <li><a href=\"#${file}\">${file##*/}</a></li>"
156  done
157  echo " * </ul>"
158  echo " * <a href="#top">Go back to top of page.</a>"
159 
160  for file in `find $JPP_DIR/examples/${dir}/* -maxdepth 0 -perm /+x`; do
161 
162  if [[ ! $file = *.sh && ! $file = *.csh ]]; then
163  source=`get_source ${file}`
164  else
165  source=$file
166  fi
167 
168  echo " * <hr>"
169  echo " * <h4 id=\"${file}\">"
170  if [[ -n "${source}" ]]; then
171  if [[ ${source} == *examples* ]] && ( `ls $JPP_DIR/software/*/${source##*/} >& /dev/null` ); then
172  source=${source##${JPP_DIR%/}/}
173  else
174  source=${source##*/}
175  fi
176  echo " * \\\\endhtmlonly"
177  echo " * ${source}"
178  echo " * \htmlonly"
179  else
180  echo " * ${file}"
181  fi
182  echo " * </h4>"
183  echo " * <pre>"
184  ${file} -h! 2>&1 | sed 's/</\&lt;/g;s/>/\&gt;/g'
185  echo " * </pre>"
186  echo " * <a href="#top">Go back to top of page.</a>"
187  done
188 done
189 
190 echo " * \\\\endhtmlonly"
191 echo " */"
then set_variable PMT_FILE set_variable DAQ_FILE set_variable OUTPUT_FILE set_variable DETECTOR else fatal Wrong number of arguments fi set_variable RUNBYRUN file
exit
Definition: JPizza.sh:36
then echo
const int n
Definition: JPolint.hh:676
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
set_variable NUMBER_OF_ITERATIONS set_variable EPSILON cat acoustics_fit_parameters txt<< EOF $CONFIGURATION[*]Nmin=3;sigma_s=100.0e-6;stdev=10.0;mestimator=0;fixStrings=0;EOF for STRING in $STRINGS[*];do#fit stretching and(z) position of given string set_variable DETECTOR_TMP ${TMPDIR:-/tmp}/detector_A.datx JEditDetector-a $DETECTOR-o $DETECTOR_TMP-r $STRING JEditDetector-a $DETECTOR-o $DETECTOR-k $STRING for MUL in 0.005 0.001;do DX_M=0.2 for((N=0;$N< $NUMBER_OF_ITERATIONS;++N));do CHI2[3]=$CHI2[1] fitPositionOfString $STRING Z $DX_M fitStretchingOfString $STRING $MUL if(($CHI2[3]-$CHI2[1]< $EPSILON));then break fi done if(($N >=$NUMBER_OF_ITERATIONS));then printf"warning: reached maximum number of iterations %d - converenge %7.3f\n"$N $(($CHI2[3]-$CHI2[1])) fi done JMergeDetector-a $DETECTOR-a $DETECTOR_TMP-o $DETECTOR rm-f $DETECTOR_TMP JConvertDetectorFormat-a $DETECTOR-o $DETECTOR-r-d 0 > &dev null done
* usage
then JConvertDetectorFormat a $DETECTOR[1] o
then JCalibrateToT a
Definition: JTuneHV.sh:116
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
Definition: JCanberra.sh:42
script
Definition: JAcoustics.sh:2
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null