1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-10 21:22:20 +03:00
Files
mvfst/install.sh
Udip Pant 731d13cc3b add install script for installing mvfst
Reviewed By: mjoras

Differential Revision: D19914554

fbshipit-source-id: e1ee1c26849378cb6b27a4d4a889e86b5e1f06ad
2020-03-13 15:03:46 -07:00

27 lines
723 B
Bash
Executable File

#!/bin/bash -eu
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
## Run this script to (re)install mvfst and its dependencies (fizz
## and folly). You must first compile all the dependencies before running this. This
## Usually this is done by first running `build_helper.sh`.
set -e
start_dir=$(pwd)
trap 'cd $start_dir' EXIT
# Must execute from the directory containing this script
cd "$(dirname "$0")"
cd _build
# Uninstall is expected to fail the first time
sudo make uninstall || true
sudo make install
# Make sure the libraries are available
# Linux only
sudo /sbin/ldconfig || true