Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Only move docs in Arduino builds #76

Merged
merged 8 commits into from
Feb 15, 2019
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions extras/ARDUINO_IDE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ fi

# Directories
EXTRAS_DIR=`dirname "$0"`
PROJECT_ROOT=${EXTRAS_DIR}/../
INCLUDE_DIR=${EXTRAS_DIR}/../src/include/cpp-client
SRC_DIR=${EXTRAS_DIR}/../src

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

echo -e "Moving Docs to the './extras' directory.\n"
mv ${PROJECT_ROOT}/docs ${EXTRAS_DIR}

echo -e "Removing old directories 🗑\n"
rm -rf ${INCLUDE_DIR}

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

echo -e "Moving Docs back to the project root directory.\n"
mv ${EXTRAS_DIR}/docs ${PROJECT_ROOT}

echo -e "Removing old directories 🗑\n"
rm -rf ${SRC_CONNECTION_DIR}

Expand Down