11#! /bin/sh
22
3+ echo " [REFERENCE GENERATOR] Booting up..."
4+
35# PROCESSING_SRC_PATH=./test
46PROCESSING_SRC_PATH=../../../processing/core/src
57PROCESSING_LIB_PATH=../../../processing/java/libraries
68# GENERATE REFERENCE ENTRIES AND INDEX THROUGH JAVADOC - BY DAVID WICKS
79
8- # remove everything old
10+ echo " [REFERENCE GENERATOR] Source Path :: $PROCESSING_SRC_PATH "
11+ echo " [REFERENCE GENERATOR] Library Path :: $PROCESSING_LIB_PATH "
12+
13+
14+ echo " [REFERENCE GENERATOR] Removing previous version of the ref..."
915rm -rf ../../reference
1016mkdir ../../reference
1117rm -rf ../../distribution
1218mkdir ../../distribution
1319
14- # generate everything anew
20+ echo " [REFERENCE GENERATOR] Generating new javadocs... "
1521javadoc -doclet ProcessingWeblet \
1622 -docletpath bin/ \
1723 -public \
@@ -33,20 +39,20 @@ javadoc -doclet ProcessingWeblet \
3339 $PROCESSING_LIB_PATH /serial/src/processing/serial/* .java \
3440 $PROCESSING_LIB_PATH /../../../processing-video/src/processing/video/* .java \
3541 -noisy
36- # ./test/seetags.java \
3742
3843
39- # COPY IMAGES FROM CONTENT FOLDER TO CORRECT FOLDERS
4044
41- # manage web reference
45+ echo " [REFERENCE GENERATOR] Copying images from content directory to the correct location..."
46+
47+ echo " [REFERENCE GENERATOR] Updating web paths..."
4248cp -R ../../css ../../reference/
4349cp -R ../../javascript ../../reference/
4450mkdir -p ../../reference/images
4551cp -R ../../content/api_media/* .jpg ../../reference/images/
4652cp -R ../../content/api_media/* .gif ../../reference/images/
4753cp -R ../../content/api_media/* .png ../../reference/images/
4854
49- # manage local reference
55+ echo " [REFERENCE GENERATOR] Updating local reference paths... "
5056cp -R ../../css ../../distribution/
5157cp -R ../../javascript ../../distribution/
5258rm -rf ../../distribution/css/fonts/TheSerif_B4_Bold_.eot
@@ -62,10 +68,11 @@ cp -R ../../content/api_media/*.png ../../distribution/images/
6268
6369
6470# COPY IMAGES
65-
71+ echo " [REFERENCE GENERATOR] Copying images to web reference... "
6672# copy images for web reference isn't needed because they are already on server
6773
6874# copy images for local reference
75+ echo " [REFERENCE GENERATOR] Copying images to local reference..."
6976mkdir -p ../../distribution/img
7077chmod 755 ../../distribution/img
7178mkdir -p ../../distribution/img/about/
@@ -85,6 +92,7 @@ cp ../../content/api_en/images/header.gif ../../distribution/img/
8592cd ../../generate/
8693
8794# run web reference creations files
95+ echo " [REFERENCE GENERATOR] Running PHP to generate static files..."
8896php staticpages.php
8997php tools.php
9098php libraries.php
@@ -97,6 +105,7 @@ php libraries_local.php
97105php environment_local.php
98106
99107# add the links to load in the libraries and tools lists online
108+ echo " [REFERENCE GENERATOR] Generating symlinks for web libraries and tools..."
100109cd ../reference/libraries/
101110ln -s index.html index.shtml
102111cd ../tools/
0 commit comments