Commit 053bea0e authored by Konrad Grochowski's avatar Konrad Grochowski

Addons: scripts gained access to UpdatePATH command

parent c0b5f287
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "${DIR}/../install/common.sh"
function CheckTargetFolder() {
local DESCRIPTION="$1"
......
......@@ -12,6 +12,7 @@ CheckTargetFolder "${DESCRIPTION}" "${INSTALL_PATH}"
DownloadToTemp "${DESCRIPTION}" "https://sourceforge.net/projects/freertos/files/FreeRTOS/V${FREERTOS_VERSION}/FreeRTOSv${FREERTOS_VERSION}.zip/download"
echo "[-]"
echo "[-] Installing FreeRTOS..."
echo "[-]"
......@@ -19,5 +20,6 @@ sudo unzip "$DOWNLOADED_FILE" -d "$PREFIX"
rm "$DOWNLOADED_FILE"
echo "[-] Creating FREERTOS_PATH enviroment variable"
echo -e "\n# FreeRTOS\nexport FREERTOS_PATH=\"$INSTALL_PATH\"" >> ~/.bashrc.taste
PATH_CMD="export FREERTOS_PATH=\"$INSTALL_PATH\""
UpdatePATH
echo "[-] Reload terminal (or source ~/.bashrc.taste) to apply change"
......@@ -18,6 +18,7 @@ fi
DownloadToTemp "${DESCRIPTION}" http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/8_3_1_0/export/msp430-gcc-full-linux${ARCH_INFIX}-installer-8.3.1.0.run
echo "[-]"
echo "[-] Installing MSP430-GCC..."
echo "[-]"
......@@ -30,5 +31,6 @@ sudo ${DOWNLOADED_FILE} \
rm ${DOWNLOADED_FILE}
echo "[-] Appending ${INSTALL_PATH}/bin to PATH"
echo -e "\n# MSP-430 support\nexport PATH=\$PATH:${INSTALL_PATH}/bin" >> ~/.bashrc.taste
PATH_CMD="export PATH=\$PATH:${INSTALL_PATH}/bin"
UpdatePATH
echo "[-] Reload terminal (or source ~/.bashrc.taste) to apply change"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment