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

Update install-deps.sh to be compatible with macos

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