Commit 20ecbb8c authored by Jerome Wu's avatar Jerome Wu

Update install-deps.sh to be compatible with macos

parent 80a8f0a1
#!/bin/bash
cmds=(autoconf automake libtool)
cmds=()
# for cmd in autoconf libtool
# do
# if ! command -v $cmd &> /dev/null
# then
# missingCmds+=("$cmd")
# fi
# done
for cmd in autoconf automake libtool
do
if ! command -v $cmd &> /dev/null
then
cmds+=("$cmd")
fi
done
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
apt-get update
apt-get install -y ${cmds[@]}
else
brew install ${cmds[@]}
if [ ${#cmds[@]} -ne 0 ];
then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
apt-get update
apt-get install -y ${cmds[@]}
else
brew install ${cmds[@]}
fi
fi
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