Skip to content

Commit 9a8c1e2

Browse files
sleepdefic1tfaustbrian
authored andcommitted
chore: Only move docs in Arduino builds (#76)
1 parent 1f9f40a commit 9a8c1e2

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

extras/ARDUINO_IDE.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ fi
2828

2929
# Directories
3030
EXTRAS_DIR=`dirname "$0"`
31+
PROJECT_ROOT=${EXTRAS_DIR}/../
3132
INCLUDE_DIR=${EXTRAS_DIR}/../src/include/cpp-client
3233
SRC_DIR=${EXTRAS_DIR}/../src
3334

@@ -124,6 +125,9 @@ if [[ -d ${INCLUDE_DIR} ]]; then
124125
echo -e "Moving 'http.h'\n"
125126
mv ${INCLUDE_HTTP_DIR}/http.h ${SRC_HTTP_DIR}
126127

128+
echo -e "Moving Docs to the './extras' directory.\n"
129+
mv ${PROJECT_ROOT}/docs ${EXTRAS_DIR}
130+
127131
echo -e "Removing old directories 🗑\n"
128132
rm -rf ${INCLUDE_DIR}
129133

@@ -183,6 +187,9 @@ else
183187
echo -e "Moving 'http.h'\n"
184188
mv ${SRC_HTTP_DIR}/http.h ${INCLUDE_HTTP_DIR}
185189

190+
echo -e "Moving Docs back to the project root directory.\n"
191+
mv ${EXTRAS_DIR}/docs ${PROJECT_ROOT}
192+
186193
echo -e "Removing old directories 🗑\n"
187194
rm -rf ${SRC_CONNECTION_DIR}
188195

0 commit comments

Comments
 (0)