Skip to content

Commit 3927123

Browse files
committed
Adjusting doclet so it doesn't delete exhisting files
1 parent 12c6b85 commit 3927123

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

doclet/ReferenceGenerator/processingrefBuild.sh

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,13 @@ REFERENCES_OUT_PATH=../../../processing-website/content/references/translations/
1111
echo "[REFERENCE GENERATOR] Source Path :: $PROCESSING_SRC_PATH"
1212
echo "[REFERENCE GENERATOR] Library Path :: $PROCESSING_LIB_PATH"
1313

14-
# You can pass one argument "sound" or "video" to generate those libraries separately
14+
# You can pass one argument "sound" or "video" (without the "") to generate those libraries separately
15+
# or "processing" to generate the core without the sound and video libraries
1516
# if there is no argument it will generate everything
1617
if [ $# -eq 0 ]
1718
then
1819
echo "No arguments supplied, generating everything"
1920
echo "[REFERENCE GENERATOR] Removing previous version of the ref..."
20-
rm -rf $REFERENCES_OUT_PATH
21-
mkdir $REFERENCES_OUT_PATH
22-
mkdir $REFERENCES_OUT_PATH/processing
23-
mkdir $REFERENCES_OUT_PATH/io
24-
mkdir $REFERENCES_OUT_PATH/net
25-
mkdir $REFERENCES_OUT_PATH/serial
26-
mkdir $REFERENCES_OUT_PATH/sound
27-
mkdir $REFERENCES_OUT_PATH/video
2821
FOLDERS="$PROCESSING_SRC_PATH/processing/core/*.java \
2922
$PROCESSING_SRC_PATH/processing/data/*.java \
3023
$PROCESSING_SRC_PATH/processing/event/*.java \
@@ -38,14 +31,6 @@ if [ $# -eq 0 ]
3831
then
3932
echo "Generating processing references"
4033
echo "[REFERENCE GENERATOR] Removing previous version of the ref..."
41-
rm -rf $REFERENCES_OUT_PATH/processing
42-
rm -rf $REFERENCES_OUT_PATH/io
43-
rm -rf $REFERENCES_OUT_PATH/net
44-
rm -rf $REFERENCES_OUT_PATH/serial
45-
mkdir $REFERENCES_OUT_PATH/processing
46-
mkdir $REFERENCES_OUT_PATH/io
47-
mkdir $REFERENCES_OUT_PATH/net
48-
mkdir $REFERENCES_OUT_PATH/serial
4934
FOLDERS="$PROCESSING_SRC_PATH/processing/core/*.java \
5035
$PROCESSING_SRC_PATH/processing/data/*.java \
5136
$PROCESSING_SRC_PATH/processing/event/*.java \
@@ -56,8 +41,6 @@ if [ $# -eq 0 ]
5641
else
5742
echo "Generating $1 library"
5843
echo "[REFERENCE GENERATOR] Removing previous version of the ref..."
59-
rm -rf $REFERENCES_OUT_PATH/$1
60-
mkdir $REFERENCES_OUT_PATH/$1
6144
FOLDERS="$PROCESSING_LIB_PATH/../../../processing-$1/src/processing/$1/*.java"
6245
fi
6346

0 commit comments

Comments
 (0)