Changeset 415
- Timestamp:
- 11/18/09 12:18:52 (15 years ago)
- Location:
- trunk/SRC/Documentation/xmldoc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/docompileall.sh
r412 r415 12 12 # :: 13 13 # 14 # $ docompileall.sh -i indir 14 # $ docompileall.sh -i indir -idl_dir idl_dir 15 15 # 16 16 # DESCRIPTION 17 17 # =========== 18 18 # 19 # ``docompileall.sh`` scans indir to find .pro files 19 # ``docompileall.sh`` scans indir to find .pro files which define PRO or FUNCTION. 20 20 # 21 21 # -i directory input … … 32 32 # 33 33 # for example, if you work at LOCEAN and work with default SAXO, 34 # SAXO_DIR=/usr/home/smasson/SAXO_DIR /.34 # SAXO_DIR=/usr/home/smasson/SAXO_DIR. 35 35 # 36 36 # For working in progress, you should checkout SAXO on a personnal 37 37 # directory and set SAXO_DIR to the working space. 38 38 # 39 # example for me : SAXO_DIR=${HOME}/SAXO_DIR_ws /39 # example for me : SAXO_DIR=${HOME}/SAXO_DIR_ws 40 40 41 41 # EXAMPLES … … 46 46 # :: 47 47 # 48 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i ${HOME}/SAXO_DIR_ws/ 48 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i ${HOME}/SAXO_DIR_ws/SRC/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 49 49 # 50 50 # For VARAMMA in working space /usr/home/fplod/incas/varamma/varamma_ws/ … … 52 52 # :: 53 53 # 54 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/home/fplod/incas/varamma/varamma_ws/ 54 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/home/fplod/incas/varamma/varamma_ws/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 55 55 # 56 56 # 57 57 # For POST_IT in working space /usr/home/fplod/incas/post_it/post_it_ws/ 58 # 59 # :: 60 # 61 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/home/fplod/incas/post_it/post_it_ws/ 58 # with IDL 6.4 59 # 60 # :: 61 # 62 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/home/fplod/incas/post_it/post_it_ws/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 63 # 64 # For POST_IT in working space /usr/home/fplod/incas/post_it/post_it_ws/ 65 # with IDL 7.0 66 # 67 # :: 68 # 69 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/home/fplod/incas/post_it/post_it_ws/ -idl_dir /usr/local_linux/idl/idl70/ 62 70 # 63 71 # TODO … … 68 76 # better handling on DEMO mode (ie information cant check) 69 77 # 78 # be less sensible to multiple / and trailing / in indir and SAXO_DIR when 79 # compare 80 # 81 # add a parameter excludedir to exclude unwanted files like ./tools/ in POST_IT.# 70 82 # EVOLUTIONS 71 83 # ========== 72 84 # 73 85 # $Id$ 86 # 87 # - fplod 20091116T142010Z aedon.locean-ipsl.upmc.fr (Darwin) 88 # 89 # * remove dup if only SAXO 90 # 91 # - fplod 20091113T151637Z aedon.locean-ipsl.upmc.fr (Darwin) 92 # 93 # * idl_dir in parameter 74 94 # 75 95 # - fplod 20091110T134500Z aedon.locean-ipsl.upmc.fr (Darwin) … … 93 113 log=/tmp/$(basename ${command} .sh).log.${log_date} 94 114 # 95 usage=" Usage : ${command} -i indir "96 # 97 minargcount= 0#++115 usage=" Usage : ${command} -i indir -idl_dir idl_dir" 116 # 117 minargcount=4 #++ 98 118 #echo " narg ${#}" 99 119 if [ ${#} -lt ${minargcount} ] … … 106 126 # default 107 127 # default IDL command and directory 108 idl_command=$(which idl) 109 idl_dir=$(dirname ${idl_command}) 128 #idl_dir=/usr/local_linux/idl/idl64/ # overriding idl_dir for test ++ 110 129 # 111 130 # default indir directory … … 120 139 shift 121 140 ;; 141 -idl_dir) 142 idl_dir=${2} 143 shift 144 ;; 122 145 -h) 123 146 echo "${usage}" … … 141 164 fi 142 165 # 166 # ++ test si IDL (car GDL inutilisable) 167 application=${idl_dir}/bin/idl 168 # 169 # start to write IDL commands file 143 170 cat <<EOF > /tmp/docompileall${$}.pro 144 ; test DEMO mode145 demo_on=LMGR(/DEMO)146 IF demo_on EQ 1 THEN BEGIN147 exit148 ENDIF149 171 .reset_session 150 172 ; 173 ; Add SAXO sources to IDL path 151 174 !path = expand_path('+' + '${SAXO_DIR}/SRC/') + ':' + expand_path('+' + !dir) 175 EOF 176 # 177 # if indir is equal to SAXO_DIR/SRC there is no need to add it in IDL path 178 if [ "${indir}" != "${SAXO_DIR}/SRC/" ] 179 then 180 cat <<EOF >> /tmp/docompileall${$}.pro 181 !path = expand_path('+' + '${indir}') + ':' + !path 182 EOF 183 fi 184 # 185 cat <<EOF >> /tmp/docompileall${$}.pro 152 186 resolve_all, resolve_either='def_myuniquetmpdir', skip_routines = ['xxx2ps','trends', 'label_gmt'] 153 187 resolve_all, resolve_either = 'find', skip_routines = ['xxx2ps','trends', 'label_gmt'] … … 168 202 EOF 169 203 # 170 more /tmp/docompileall${$}.pro171 read a172 204 # find .pro files 173 205 list_files=$(find ${indir} -name "*.pro" | grep -iv label_gmt | grep -iv report) … … 194 226 echo "exit" >> /tmp/docompileall${$}.pro 195 227 # 196 IDL_STARTUP=/tmp/docompileall${$}.pro 197 ${idl_command} &> /tmp/docompileallerr_${$} 228 #more /tmp/docompileall${$}.pro 229 export IDL_STARTUP=/tmp/docompileall${$}.pro 230 ${application} &> /tmp/docompileallerr_${$} 198 231 grep -i "error" /tmp/docompileallerr_${$} 199 232 # grep -q "Compilation error(s)" /tmp/docompileallerr_${$} -
trunk/SRC/Documentation/xmldoc/doidldoc.sh
r413 r415 20 20 # -t title 21 21 # -o directory output 22 # -idl_dir idl_dir 22 23 # -idldoc_version idldoc_version 23 24 # -idldoc_dir idldoc_dir … … 63 64 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i ../.. -t "SAXO Documentation" -o ./idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 64 65 # 66 # To produce GEOMAG HTML outputs : 67 # :: 68 # 69 # $ cd /usr/home/fplod/incas/geomag/geomag_ws/ 70 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "GEOMAG Documentation" -o /usr/work/incas/${LOGNAME}/geomag/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 71 # 65 72 # To produce VARAMMA HTML outputs : 66 73 # :: … … 73 80 # 74 81 # $ cd /usr/home/fplod/incas/post_it/post_it_ws/ 75 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "POST_IT/Documentation" -o / tmp/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/82 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "POST_IT/Documentation" -o /usr/work/incas/${LOGNAME}/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 76 83 # 77 84 … … 93 100 # 94 101 # $Id$ 102 # 103 # - fplod 20091112T101526Z zeus.locean-ipsl.upmc.fr (Linux) 104 # 105 # * replace mv by cp -r because mv may no works accross filesystems 106 # * add chek on outdir 95 107 # 96 108 # - fplod 20091112T084225Z aedon.locean-ipsl.upmc.fr (Darwin) … … 248 260 set -u 249 261 # 262 # check for outir 263 if [ ! -d ${outdir} ] 264 then 265 echo "eee : outdir (${outdir}) not found" 266 exit 1 267 fi 268 # check for permission access on outdir 269 if [ ! -x ${outdir} ] 270 then 271 echo " eee : ${outdir} not reachable" 272 exit 1 273 fi 274 # 275 # check for write permission on outdir 276 if [ ! -w ${outdir} ] 277 then 278 echo " eee : ${outdir} not writable" 279 exit 1 280 fi 281 # 250 282 # ++ test si IDL (car GDL inutilisable) 251 application=idl 252 # 253 # memorize current directory 254 memopwd=$(pwd) # should be <working space>/SRC/Documentation/xmldoc 283 application=${idl_dir}/bin/idl 255 284 # 256 285 # build a IDL file to launch idldoc … … 315 344 # build the .pro file name 316 345 bfile=$(basename ${file_html} .html) 317 # retrieve the path of html file relative to memopwd (so relative to318 # output).This path will be used in "Source" link.346 # retrieve the path of html file relative to output. 347 # This path will be used in "Source" link. 319 348 nblev2=$(dirname ${file_html} | sed -e "s@/\$@@" | awk -F "/" '{print NF}') 320 349 difflev=$((${nblev2} - ${nblev1})) … … 413 442 ;; 414 443 esac 415 more ${pro}416 read a417 444 # launch IDL with the file built above 418 445 IDL_STARTUP=${pro};${idl_dir}/bin/idl … … 464 491 mv ${file_html}_modify ${file_html} 465 492 done 493 # 466 494 # replace <pro>ginette</pro> by a sequence like 467 495 # <a href="./ginette.html">ginette</a> … … 516 544 fi 517 545 # copy of temporary outputs on final directory 518 # ++ if transform 519 mv ${outputtmp} ${outdir} 546 cp -r ${outputtmp}/* ${outdir} 520 547 echo "iii : look at ${outdir}/index.html" 521 548 echo "iii : you can see idldoc log file in ${idldoc_log}" -
trunk/SRC/Documentation/xmldoc/pro2href.sh
r262 r415 1 1 #! /bin/sh 2 2 # 3 # module : 3 # DESCRIPTION 4 # =========== 5 # 4 6 # replace <element>ginette</element> by a sequence like with element given 5 7 # in argument <a href="./ginette.html">ginette</a> … … 10 12 # see call in savesaxo.sh 11 13 # 12 # update : 14 # EVOLUTIONS 15 # ========== 13 16 # $Id$ 17 # 14 18 # fplod 2007-08-21T09:06:58Z aedon.locean-ipsl.upmc.fr (Darwin) 15 19 # add -e (element) parameter to define element syntax like … … 37 41 set -o posix 38 42 command=$(basename ${0} .sh) 39 log_date=$(date -u +"%Y -%m-%dT%H:%M:%SZ")43 log_date=$(date -u +"%Y%m%dT%H%M%SZ") 40 44 log=/tmp/${command}.${log_date} 41 45 # -
trunk/SRC/Documentation/xmldoc/savesaxo.sh
r413 r415 11 11 # 12 12 # $Id$ 13 # 14 # - fplod 20091112T101551Z zeus.locean-ipsl.upmc.fr (Linux) 15 # 16 # * add check on doidldoc.sh status 13 17 # 14 18 # - fplod 20091112T091437Z aedon.locean-ipsl.upmc.fr (Darwin) … … 270 274 if [ ${doidldoc} -eq 1 ] 271 275 then 272 #276 # 273 277 # build HTML idldoc outputs 274 278 ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh \ … … 276 280 -o ../idldoc_html_output/ 277 281 -idl_dir ${idl_dir} 278 # 282 doidldoc_html=${?} 283 if [ ${doidldoc_html} -ne 0 ] 284 then 285 echo "eee : pb with doidldoc html" 286 exit 1 287 fi 288 # 279 289 # build a idl file to launch idldoc 280 290 output=../idldoc_assistant_output/
Note: See TracChangeset
for help on using the changeset viewer.