|
|
@ -2,19 +2,18 @@ |
|
|
|
|
|
|
|
|
|
|
|
install() { |
|
|
|
install() { |
|
|
|
|
|
|
|
|
|
|
|
sudo xcode-select --install || exit 1 |
|
|
|
sudo xcode-select --install |
|
|
|
|
|
|
|
|
|
|
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" || exit 1 |
|
|
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
brew install python git cmake libsodium openssl || exit 1 |
|
|
|
xargs brew install < "${installToolsPath}/PackageListBrew.txt" || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
sudo pip3 install -r "${installToolsPath}/PackageListPython.txt" || exit 1 |
|
|
|
sudo pip3 install -r "${installToolsPath}/PackageListPython.txt" || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
upgrade() { |
|
|
|
upgrade() { |
|
|
|
|
|
|
|
|
|
|
|
brew upgrade || exit 1 |
|
|
|
xargs brew upgrade < "${installToolsPath}/PackageListBrew.txt" || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
sudo pip3 install -r "${installToolsPath}/PackageListPython.txt" --upgrade || exit 1 |
|
|
|
sudo pip3 install -r "${installToolsPath}/PackageListPython.txt" --upgrade || exit 1 |
|
|
|
|
|
|
|
|
|
|
@ -24,9 +23,9 @@ set -o nounset |
|
|
|
|
|
|
|
|
|
|
|
installToolsPath="$(cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)" |
|
|
|
installToolsPath="$(cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)" |
|
|
|
|
|
|
|
|
|
|
|
if [ "${1}" = "--upgrade" ]; then |
|
|
|
if [ "${1-}" = "--upgrade" ]; then |
|
|
|
upgrade |
|
|
|
upgrade |
|
|
|
elif [ -z "${1}" ]; then |
|
|
|
elif [ -z "${1-}" ]; then |
|
|
|
install |
|
|
|
install |
|
|
|
else |
|
|
|
else |
|
|
|
echo "error: Invalid argument. Use '--upgrade' switch to upgrade packages, or none to install packages." |
|
|
|
echo "error: Invalid argument. Use '--upgrade' switch to upgrade packages, or none to install packages." |
|
|
|