nats.zig/deps/nats.c/install_deps.sh
torque 79a45fd2e3
git subrepo clone (merge) --branch=v3.6.1 https://github.com/nats-io/nats.c.git deps/nats.c
subrepo:
  subdir:   "deps/nats.c"
  merged:   "66cec7f"
upstream:
  origin:   "https://github.com/nats-io/nats.c.git"
  branch:   "v3.6.1"
  commit:   "66cec7f"
git-subrepo:
  version:  "0.4.6"
  commit:   "b8b46501e"
2023-08-15 00:21:33 -07:00

15 lines
443 B
Bash
Executable File

#!/bin/sh
set -ex
# check to see if the deps folder is empty
if [ ! "$(ls -A $HOME/deps)" ]; then
mkdir -p $HOME/deps
git clone https://github.com/nats-io/nats.c.deps.git $HOME/deps
wget --no-check-certificate https://cmake.org/files/v3.20/cmake-3.20.4-linux-x86_64.tar.gz
tar -xvf cmake-3.20.4-linux-x86_64.tar.gz > /dev/null
mv cmake-3.20.4-linux-x86_64 $HOME/deps/cmake-install
else
echo 'Using cached directory.';
fi
cd $HOME