scripts/jsdoctoolkit.sh
changeset 3042 72eec4d72471
equal deleted inserted replaced
3041:c8f47f0b6697 3042:72eec4d72471
       
     1 #!/bin/bash
       
     2 #Requires java installed
       
     3 
       
     4 jsdoc_dir="../thirdparty/jsdoctoolkit"
       
     5 
       
     6 js_dir="../app/soc/content/js"
       
     7 doc_dir="$js_dir/documentation"
       
     8 private_doc_dir="$doc_dir/private"
       
     9 public_doc_dir="$doc_dir/public"
       
    10 private_all_doc_dir="$doc_dir/private_all"
       
    11 public_all_doc_dir="$doc_dir/public_all"
       
    12 
       
    13 echo "*** JSDOCTOOLKIT: cleaning out former documentation dir ***"
       
    14 rm -fr $doc_dir
       
    15 
       
    16 echo "*** JSDOCTOOLKIT: creating private documentation ***"
       
    17 java -jar $jsdoc_dir/jsrun.jar $jsdoc_dir/app/run.js $js_dir/*.js -r -p -t=$jsdoc_dir/templates/jsdoc -d=$private_doc_dir
       
    18 
       
    19 echo "*** JSDOCTOOLKIT: creating private documentation for all functions ***"
       
    20 java -jar $jsdoc_dir/jsrun.jar $jsdoc_dir/app/run.js $js_dir/*.js -r -a -p -t=$jsdoc_dir/templates/jsdoc -d=$private_all_doc_dir
       
    21 
       
    22 echo "*** JSDOCTOOLKIT: creating public documentation ***"
       
    23 java -jar $jsdoc_dir/jsrun.jar $jsdoc_dir/app/run.js $js_dir/*.js -r -t=$jsdoc_dir/templates/jsdoc -d=$public_doc_dir
       
    24 
       
    25 echo "*** JSDOCTOOLKIT: creating public documentation for all functions ***"
       
    26 java -jar $jsdoc_dir/jsrun.jar $jsdoc_dir/app/run.js $js_dir/*.js -r -a -t=$jsdoc_dir/templates/jsdoc -d=$public_all_doc_dir
       
    27 
       
    28 echo "*** JSDOCTOOLKIT: processing finished, documentation available in app/soc/content/js/documentation ***"
       
    29