mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #7775 from gojimmypi/pr-arduino-script
Update Arduino publishing script for 5.7.2 releasepull/7822/head
commit
c3adf6635b
|
@ -10,4 +10,6 @@ See the [Arduino-wolfSSL logs](https://downloads.arduino.cc/libraries/logs/githu
|
||||||
|
|
||||||
The first Official wolfSSL Arduino Library is `5.6.6-Arduino.1`: a slightly modified, post [release 5.6.6](https://github.com/wolfSSL/wolfssl/releases/tag/v5.6.6-stable) version update.
|
The first Official wolfSSL Arduino Library is `5.6.6-Arduino.1`: a slightly modified, post [release 5.6.6](https://github.com/wolfSSL/wolfssl/releases/tag/v5.6.6-stable) version update.
|
||||||
|
|
||||||
|
The next Official wolfSSL Arduino Library is [5.7.0](https://github.com/wolfSSL/wolfssl/releases/tag/v5.7.0-stable)
|
||||||
|
|
||||||
See other [wolfSSL releases versions](https://github.com/wolfSSL/wolfssl/releases). The `./wolfssl-arduino.sh INSTALL` [script](https://github.com/wolfSSL/wolfssl/tree/master/IDE/ARDUINO) can be used to install specific GitHub versions as needed.
|
See other [wolfSSL releases versions](https://github.com/wolfSSL/wolfssl/releases). The `./wolfssl-arduino.sh INSTALL` [script](https://github.com/wolfSSL/wolfssl/tree/master/IDE/ARDUINO) can be used to install specific GitHub versions as needed.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
ROOT_DIR="/wolfssl"
|
ROOT_DIR="/wolfssl"
|
||||||
|
|
||||||
# The Arduino Version will initially have a suffix appended during fine tuning stage.
|
# The Arduino Version will initially have a suffix appended during fine tuning stage.
|
||||||
WOLFSSL_VERSION_ARUINO_SUFFIX="-Arduino.3"
|
WOLFSSL_VERSION_ARUINO_SUFFIX=""
|
||||||
|
|
||||||
# For verbose copy, set CP_CMD="-v", otherwise clear it: CP_CMD="cp"
|
# For verbose copy, set CP_CMD="-v", otherwise clear it: CP_CMD="cp"
|
||||||
# Do not set to empty string, as copy will fail with this: CP_CMD=""
|
# Do not set to empty string, as copy will fail with this: CP_CMD=""
|
||||||
|
@ -65,6 +65,11 @@ if ! [ "$CP_CMD" = "cp " ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$ROOT_DIR" = "" ]; then
|
||||||
|
echo "ERROR: ROOT_DIR cannot be blank"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Check environment
|
# Check environment
|
||||||
if [ -n "$WSL_DISTRO_NAME" ]; then
|
if [ -n "$WSL_DISTRO_NAME" ]; then
|
||||||
# we found a non-blank WSL environment distro name
|
# we found a non-blank WSL environment distro name
|
||||||
|
@ -84,6 +89,11 @@ if [ $# -gt 0 ]; then
|
||||||
if [ "$THIS_OPERATION" = "INSTALL" ]; then
|
if [ "$THIS_OPERATION" = "INSTALL" ]; then
|
||||||
THIS_INSTALL_DIR=$2
|
THIS_INSTALL_DIR=$2
|
||||||
|
|
||||||
|
if [ "$THIS_INSTALL_DIR" = "/" ]; then
|
||||||
|
echo "ERROR: THIS_INSTALL_DIR cannot be /"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Install is active."
|
echo "Install is active."
|
||||||
|
|
||||||
if [ "$THIS_INSTALL_DIR" = "" ]; then
|
if [ "$THIS_INSTALL_DIR" = "" ]; then
|
||||||
|
@ -300,10 +310,6 @@ echo ""
|
||||||
# Note we should have exited above if a problem was encountered,
|
# Note we should have exited above if a problem was encountered,
|
||||||
# as we'll never want to install a bad library.
|
# as we'll never want to install a bad library.
|
||||||
if [ "$THIS_OPERATION" = "INSTALL" ]; then
|
if [ "$THIS_OPERATION" = "INSTALL" ]; then
|
||||||
if [ "$THIS_INSTALL_IS_GITHUB" = "true" ]; then
|
|
||||||
echo "Installing to GitHub directory: $THIS_INSTALL_DIR"
|
|
||||||
cp -r ."$ROOT_DIR"/* "$THIS_INSTALL_DIR" || exit 1
|
|
||||||
else
|
|
||||||
echo "Config:"
|
echo "Config:"
|
||||||
echo "cp ../../examples/configs/user_settings_arduino.h ".${ROOT_SRC_DIR}"/user_settings.h"
|
echo "cp ../../examples/configs/user_settings_arduino.h ".${ROOT_SRC_DIR}"/user_settings.h"
|
||||||
# Nearly an ordinary copy, but we remove any lines with ">>" (typically edit with caution warning in comments)
|
# Nearly an ordinary copy, but we remove any lines with ">>" (typically edit with caution warning in comments)
|
||||||
|
@ -313,7 +319,13 @@ if [ "$THIS_OPERATION" = "INSTALL" ]; then
|
||||||
grep "WOLFSSL_USER_SETTINGS_ID" ."${ROOT_SRC_DIR}/user_settings.h"
|
grep "WOLFSSL_USER_SETTINGS_ID" ."${ROOT_SRC_DIR}/user_settings.h"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "Install:"
|
if [ "$THIS_INSTALL_IS_GITHUB" = "true" ]; then
|
||||||
|
echo "Installing to GitHub directory: $THIS_INSTALL_DIR"
|
||||||
|
cp -r ."$ROOT_DIR"/* "$THIS_INSTALL_DIR" || exit 1
|
||||||
|
echo "Removing workspace library directory: .$ROOT_DIR"
|
||||||
|
rm -rf ".$ROOT_DIR"
|
||||||
|
else
|
||||||
|
echo "Installing to local directory:"
|
||||||
echo "mv .$ROOT_DIR $ARDUINO_ROOT"
|
echo "mv .$ROOT_DIR $ARDUINO_ROOT"
|
||||||
mv ."$ROOT_DIR" "$ARDUINO_ROOT" || exit 1
|
mv ."$ROOT_DIR" "$ARDUINO_ROOT" || exit 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue