Changeset 7
- Timestamp:
- 12/12/08 11:39:06 (15 years ago)
- Location:
- trunk
- Files:
-
- 21 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/guides/makefile
r3 r7 1 #- 1 #+ 2 # 2 3 # module 3 4 # ====== 5 # 4 6 # generation of documentations from XML files in HTML and wiki forms 5 7 # … … 21 23 # 22 24 # * creation 25 # 23 26 #- 24 27 PRODUCT = \ … … 28 31 /usr/home/fplod/incas/$(PRODUCT)/$(PRODUCT)_ws/ 29 32 30 31 33 DIRSRC = \ 32 34 $(DIRBASE)/adm/guides/ … … 36 38 37 39 DIRWWW = \ 38 /usr/temp/${LOGNAME}/public_html/$(PRODUCT)/$(PRODUCT)_ws/doc/guides/40 $(DIRBASE)/doc/guides/ 39 41 40 42 DIRWIKI = \ 41 43 $(DIRWWW)/wiki/ 44 45 LIST_XML = \ 46 LIST_XML_en \ 47 LIST_XML_fr 48 49 LIST_XML_en = \ 50 $(DIRSRC)/svnbasiccommands.xml 51 52 LIST_XML_fr = \ 53 $(DIRSRC)/web.xml 42 54 43 55 .PHONY : \ … … 46 58 before \ 47 59 dbkcheck \ 60 spellcheck \ 48 61 help \ 49 62 html \ … … 64 77 @mkdir -p ${DIRWWW}/wiki 65 78 66 clean : 79 clean : \ 80 cleantmp 81 -@rm -rf ${DIRWWW}/html/ 82 -@rm -rf ${DIRWWW}/wiki/ 83 84 cleantmp : 67 85 -@rm -f $(DIRTMP)/*_full.xml 68 86 -@rm -f $(DIRTMP)/err_xmlstarlet_xsd 69 87 -@rm -f $(DIRTMP)/get_sed.xml 70 88 -@rm -f $(DIRTMP)/firststeps_sed.xml 89 90 spellcheck : 91 @for file in $(LIST_XML_fr); do \ 92 aspell --mode=sgml --master=french -c $${file}; done 93 @for file in $(LIST_XML_en); do \ 94 aspell --mode=sgml --master=english -c $${file}; done 71 95 72 96 dbkcheck : … … 83 107 84 108 html : \ 85 $(DIRWWW)/html/ svnbasiccommands.html \86 $(DIRWWW)/html/ index.html109 $(DIRWWW)/html/index.html \ 110 $(DIRWWW)/html/svnbasiccommands.html 87 111 88 112 tracwiki : \ 89 $(DIRWIKI)/ SvnBasicCommands\90 $(DIRWIKI)/ WikiStart113 $(DIRWIKI)/WikiStart \ 114 $(DIRWIKI)/SvnBasicCommands 91 115 @echo "Do not forget to import wiki pages" 92 116 @echo "\$$ ssh $(PRODUCT)@forge.ipsl.jussieu.fr mkdir -p /tmp/$(PRODUCT)/" -
trunk/adm/guides/svnbasiccommands.xml
r5 r7 142 142 A aaa 143 143 </computeroutput> 144 <prompt>$</prompt> <userinput>svn status</userinput> <lineannotation>check that <filename>aaa</filename> has bee dadd to the deposit</lineannotation>144 <prompt>$</prompt> <userinput>svn status</userinput> <lineannotation>check that <filename>aaa</filename> has been add to the deposit</lineannotation> 145 145 <computeroutput> 146 146 A aaa -
trunk/adm/guides/web.xml
r6 r7 54 54 <title>Travailler sur &project;</title> 55 55 <para> 56 Naviguer dans <link xl:href="http://forge.ipsl.jussieu.fr/ ircaam/"/>56 Naviguer dans <link xl:href="http://forge.ipsl.jussieu.fr/&project_svn;/"/> 57 57 </para> 58 58 </sect1> … … 63 63 </title> 64 64 <para> 65 <link xl:href="file://locean-ipsl.upmc.fr/usr/temp/fplod/public_html/ ircaam/fr/one/ircaam.html"/> (notes de travail fp au LOCEAN)65 <link xl:href="file://locean-ipsl.upmc.fr/usr/temp/fplod/public_html/&project_svn;/notes/fr/one/&project_svn;.html"/> (notes de travail fp au LOCEAN) 66 66 </para> 67 67 </sect1> -
trunk/adm/makefile
- Property svn:keywords set to Id
r4 r7 36 36 # .. _extract_rst.sh: ../extract_rst.sh.html 37 37 # 38 # +38 #- 39 39 # 40 40 PRODUCT = \ … … 57 57 58 58 DIRWWW = \ 59 ../doc/59 $(DIRBASE)/doc/ 60 60 61 61 URLPUBLISH = \ … … 98 98 99 99 before : 100 @before.sh -p $(PRODUCT) -s $(DIRSRC) -w $(DIRWWW) -mono -l en 101 @mkdir -p $(DIRWWW)/manuals/html/ 102 @mkdir -p $(DIRWWW)/manuals/pdf/ 100 @mkdir -p $(DIRWWW)/manuals/html/one/ 101 @mkdir -p $(DIRWWW)/manuals/html/many/ 102 @mkdir -p $(DIRWWW)/manuals/pdf/one/ 103 @mkdir -p $(DIRWWW)/manuals/pdf/many/ 103 104 104 105 install : 105 106 @install.sh -w $(DIRWWW) -u $(URLPUBLISH) 106 107 107 clean : 108 clean : \ 109 cleantmp 108 110 -@rm -fr $(DIRWWW)/manuals/html/ 109 111 -@rm -fr $(DIRWWW)/manuals/pdf/ 110 112 -@rm -fr $(DIRWWW)/src_browser/ 113 114 cleantmp : 111 115 -@rm -f $(DIRTMP)/all.xml 112 116 -@rm -f $(DIRTMP)/*.rst … … 114 118 -@rm -f $(DIRTMP)/links.rst* 115 119 -@rm -f $(DIRTMP)/*.tex 116 -@rm -f $(DIRTMP)/*.aux 117 -@rm -f $(DIRTMP)/*.log 118 -@rm -f $(DIRTMP)/*.out 120 -@rm -f $(DIRWWW)/manuals/pdf/one/*.aux 121 -@rm -f $(DIRWWW)/manuals/pdf/one/*.log 122 -@rm -f $(DIRWWW)/manuals/pdf/one/*.out 123 -@rm -f $(DIRWWW)/manuals/pdf/many/*.aux 124 -@rm -f $(DIRWWW)/manuals/pdf/many/*.log 125 -@rm -f $(DIRWWW)/manuals/pdf/many/*.out 119 126 120 127 htmllinkcheckb : 121 @linkchecker.sh -d $(DIRWWW) 128 @linkchecker.sh -d $(DIRWWW)/manuals/html/ 122 129 123 130 htmllinkchecka : … … 133 140 134 141 man_html : \ 135 $(DIRWWW)/manuals/html/index.html \ 136 $(DIRWWW)/manuals/html/$(PRODUCT)_manuals.html \ 137 $(DIRWWW)/manuals/html/$(PRODUCT)_profile.sh.html \ 138 $(DIRWWW)/manuals/html/dlogd.sh.html \ 139 $(DIRWWW)/manuals/html/elogd.sh.html \ 140 $(DIRWWW)/manuals/html/plogd.sh.html \ 141 $(DIRWWW)/manuals/html/tlogd.sh.html 142 man_html_one \ 143 man_html_many 144 145 man_html_one : \ 146 $(DIRWWW)/manuals/html/one/index.html 147 148 man_html_many : \ 149 $(DIRWWW)/manuals/html/many/index.html \ 150 $(DIRWWW)/manuals/html/many/$(PRODUCT)_profile.sh.html \ 151 $(DIRWWW)/manuals/html/many/dlogd.sh.html \ 152 $(DIRWWW)/manuals/html/many/elogd.sh.html \ 153 $(DIRWWW)/manuals/html/many/plogd.sh.html \ 154 $(DIRWWW)/manuals/html/many/tlogd.sh.html 142 155 143 156 man_pdf : \ 144 $(DIRWWW)/manuals/pdf/$(PRODUCT)_manuals.pdf \ 145 $(DIRWWW)/manuals/pdf/$(PRODUCT)_profile.sh.pdf \ 146 $(DIRWWW)/manuals/pdf/dlogd.sh.pdf \ 147 $(DIRWWW)/manuals/pdf/elogd.sh.pdf \ 148 $(DIRWWW)/manuals/pdf/plogd.sh.pdf \ 149 $(DIRWWW)/manuals/pdf/tlogd.sh.pdf 150 151 $(DIRWWW)/manuals/html/index.html : \ 157 man_pdf_one \ 158 man_pdf_many 159 160 man_pdf_one : \ 161 $(DIRWWW)/manuals/pdf/one/$(PRODUCT)_manuals.pdf \ 162 163 man_pdf_many : \ 164 $(DIRWWW)/manuals/pdf/many/$(PRODUCT)_profile.sh.pdf \ 165 $(DIRWWW)/manuals/pdf/many/dlogd.sh.pdf \ 166 $(DIRWWW)/manuals/pdf/many/elogd.sh.pdf \ 167 $(DIRWWW)/manuals/pdf/many/plogd.sh.pdf \ 168 $(DIRWWW)/manuals/pdf/many/tlogd.sh.pdf 169 170 $(DIRWWW)/manuals/html/many/index.html : \ 152 171 $(DIRTMP)/index.rst 153 172 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 154 173 $< $@ 155 174 156 $(DIRWWW)/manuals/html/ $(PRODUCT)_manuals.html : \175 $(DIRWWW)/manuals/html/one/index.html : \ 157 176 $(DIRTMP)/$(PRODUCT)_manuals.rst 158 177 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 159 178 $< $@ 160 179 161 $(DIRWWW)/manuals/pdf/ $(PRODUCT)_manuals.pdf : \180 $(DIRWWW)/manuals/pdf/one/$(PRODUCT)_manuals.pdf : \ 162 181 $(DIRTMP)/$(PRODUCT)_manuals.tex 163 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<182 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/one/ $< 164 183 165 184 $(DIRTMP)/$(PRODUCT)_manuals.tex : \ 166 185 $(DIRTMP)/$(PRODUCT)_manuals.rst 167 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time --time\186 @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 168 187 $< $@ 169 188 … … 175 194 $(DIRTMP)/plogd.sh.rst \ 176 195 $(DIRTMP)/tlogd.sh.rst 177 cat $(DIRTMP)/index.rst > ${DIRTMP}/$(PRODUCT)_manuals.rst1196 @cat $(DIRTMP)/index.rst > ${DIRTMP}/$(PRODUCT)_manuals.rst1 178 197 @for file in $(LIST_SRCSH); \ 179 198 do echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 199 echo ".. raw:: latex" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 200 echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 201 echo " \newpage" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 202 echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 203 echo ".. _$$(basename $${file}) :" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 204 echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 180 205 echo "$$(basename $${file})" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 181 206 echo "$$(basename $${file} | tr [:print:] =)" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ; \ … … 183 208 sed -e "s/^==*$$/-----------------/" ${DIRTMP}/$$(basename $${file}).rst >> ${DIRTMP}/$(PRODUCT)_manuals.rst1; \ 184 209 done 185 grep "\.\. _.*: .*$$" ${DIRTMP}/$(PRODUCT)_manuals.rst1 > \210 @grep "\.\. _.*: .*$$" ${DIRTMP}/$(PRODUCT)_manuals.rst1 > \ 186 211 ${DIRTMP}/links.rst 187 sed -e "s/^ *//" ${DIRTMP}/links.rst | sort -u > ${DIRTMP}/links.rst2188 sed -e "/\.\. _.*: .*$$/d" ${DIRTMP}/$(PRODUCT)_manuals.rst1 > \212 @sed -e "s/^ *//" ${DIRTMP}/links.rst | sort -u > ${DIRTMP}/links.rst2 213 @sed -e "/\.\. _.*: .*$$/d" ${DIRTMP}/$(PRODUCT)_manuals.rst1 > \ 189 214 ${DIRTMP}/$(PRODUCT)_manuals.rst2 190 cat ${DIRTMP}/$(PRODUCT)_manuals.rst2 ${DIRTMP}/links.rst2 >$@215 @cp ${DIRTMP}/$(PRODUCT)_manuals.rst2 $@ 191 216 192 217 $(DIRTMP)/index.rst : … … 195 220 @echo "=================" >> $@ 196 221 @echo " " >> $@ 197 @echo "blabla see Guide_ " >> $@198 @echo " " >> $@199 @echo " .. _Guide : ../../guides/html/index.html" >> $@200 @echo " " >> $@201 202 222 @echo "Shell scripts" >> $@ 203 223 @echo "=============" >> $@ 204 @for file in $(LIST_SRCSH); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; done >> $@224 @for file in $(LIST_SRCSH); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; done >> $@ 205 225 @echo " " >> $@ 206 226 207 $(DIRWWW)/manuals/html/ $(PRODUCT)_profile.sh.html : \227 $(DIRWWW)/manuals/html/many/$(PRODUCT)_profile.sh.html : \ 208 228 $(DIRTMP)/$(PRODUCT)_profile.sh.rst 209 229 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 210 230 $< $@ 211 231 212 $(DIRWWW)/manuals/pdf/ $(PRODUCT)_profile.sh.pdf : \232 $(DIRWWW)/manuals/pdf/many/$(PRODUCT)_profile.sh.pdf : \ 213 233 $(DIRTMP)/$(PRODUCT)_profile.sh.tex 214 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<234 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 215 235 216 236 $(DIRTMP)/$(PRODUCT)_profile.sh.tex : \ … … 223 243 @extract_rst.sh -i $< -l sh -o $@ 224 244 225 $(DIRWWW)/manuals/html/ dlogd.sh.html : \245 $(DIRWWW)/manuals/html/many/dlogd.sh.html : \ 226 246 $(DIRTMP)/dlogd.sh.rst 227 247 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 228 248 $< $@ 229 249 230 $(DIRWWW)/manuals/pdf/ dlogd.sh.pdf : \250 $(DIRWWW)/manuals/pdf/many/dlogd.sh.pdf : \ 231 251 $(DIRTMP)/dlogd.sh.tex 232 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<233 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<252 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 253 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 234 254 235 255 $(DIRTMP)/dlogd.sh.tex : \ … … 242 262 @extract_rst.sh -i $< -l sh -o $@ 243 263 244 $(DIRWWW)/manuals/html/ elogd.sh.html : \264 $(DIRWWW)/manuals/html/many/elogd.sh.html : \ 245 265 $(DIRTMP)/elogd.sh.rst 246 266 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 247 267 $< $@ 248 268 249 $(DIRWWW)/manuals/pdf/ elogd.sh.pdf : \269 $(DIRWWW)/manuals/pdf/many/elogd.sh.pdf : \ 250 270 $(DIRTMP)/elogd.sh.tex 251 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<252 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<271 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 272 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 253 273 254 274 $(DIRTMP)/elogd.sh.tex : \ … … 261 281 @extract_rst.sh -i $< -l sh -o $@ 262 282 263 $(DIRWWW)/manuals/html/ plogd.sh.html : \283 $(DIRWWW)/manuals/html/many/plogd.sh.html : \ 264 284 $(DIRTMP)/plogd.sh.rst 265 285 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 266 286 $< $@ 267 287 268 $(DIRWWW)/manuals/pdf/ plogd.sh.pdf : \288 $(DIRWWW)/manuals/pdf/many/plogd.sh.pdf : \ 269 289 $(DIRTMP)/plogd.sh.tex 270 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<271 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<290 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 291 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 272 292 273 293 $(DIRTMP)/plogd.sh.tex : \ … … 280 300 @extract_rst.sh -i $< -l sh -o $@ 281 301 282 $(DIRWWW)/manuals/html/ tlogd.sh.html : \302 $(DIRWWW)/manuals/html/many/tlogd.sh.html : \ 283 303 $(DIRTMP)/tlogd.sh.rst 284 304 @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 285 305 $< $@ 286 306 287 $(DIRWWW)/manuals/pdf/ tlogd.sh.pdf : \307 $(DIRWWW)/manuals/pdf/many/tlogd.sh.pdf : \ 288 308 $(DIRTMP)/tlogd.sh.tex 289 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<290 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $<309 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 310 @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/many/ $< 291 311 292 312 $(DIRTMP)/tlogd.sh.tex : \ -
trunk/src/ircaam_profile.sh
r2 r7 28 28 # ${IRCAAM} 29 29 # 30 # ${ PROJECT_LOG} ++30 # ${IRCAAM_LOG} ++ 31 31 # 32 32 # ${IRCAAM_ID} … … 69 69 # 70 70 # /usr/home/fplod/incas/ircaam/ircaam_ws/src/ircaam_profile.sh sur aedon.locean-ipsl.upmc.fr 71 # 72 # 73 # TODO 74 # ==== 75 # 76 # matlab/octave path 71 77 # 72 78 # EVOLUTIONS … … 190 196 fi 191 197 # 192 PROJECT_LOG=${tempdir}193 export PROJECT_LOG194 if [ ! -d ${ PROJECT_LOG} ]195 then 196 mkdir -p ${ PROJECT_LOG}197 echo "${command} : iii : creation of \${ PROJECT_LOG}"198 IRCAAM_LOG=${tempdir} 199 export IRCAAM_LOG 200 if [ ! -d ${IRCAAM_LOG} ] 201 then 202 mkdir -p ${IRCAAM_LOG} 203 echo "${command} : iii : creation of \${IRCAAM_LOG}" 198 204 fi 199 # check for permission on PROJECT_LOG200 if [ ! -x ${ PROJECT_LOG} ]201 then 202 echo " eee : ${ PROJECT_LOG} not reachable"203 # nb : no exit because this file should be launched by login process 204 fi 205 # 206 # check for permission on PROJECT_LOG207 if [ ! -w ${ PROJECT_LOG} ]208 then 209 echo " eee : ${ PROJECT_LOG} not writable"205 # check for permission on IRCAAM_LOG 206 if [ ! -x ${IRCAAM_LOG} ] 207 then 208 echo " eee : ${IRCAAM_LOG} not reachable" 209 # nb : no exit because this file should be launched by login process 210 fi 211 # 212 # check for permission on IRCAAM_LOG 213 if [ ! -w ${IRCAAM_LOG} ] 214 then 215 echo " eee : ${IRCAAM_LOG} not writable" 210 216 # nb : no exit because this file shouldreachable be launched by login process 211 217 fi -
trunk/src/plogd.sh
r2 r7 6 6 # ==== 7 7 # 8 # plogd.sh - prints the most recent release of ${IRCAAM_LOG}/action.log. AAAA-MM-JJTHH:MM:SSZ8 # plogd.sh - prints the most recent release of ${IRCAAM_LOG}/action.log.YYYY-MM-DDTHH:MM:SSZ 9 9 # 10 10 # SYNOPSIS -
trunk/src/tlogd.sh
r2 r7 6 6 # ==== 7 7 # 8 # tlogd.sh - shows the most recent release of ${IRCAAM_LOG}/ <action>.log.YYYY-MM-DDTHH:MM:SSZ8 # tlogd.sh - shows the most recent release of ${IRCAAM_LOG}/action.log.YYYY-MM-DDTHH:MM:SSZ 9 9 # 10 10 # SYNOPSIS
Note: See TracChangeset
for help on using the changeset viewer.