1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-04-17 06:37:00 +03:00
mvfst/install.sh
Hani Damlaj 00e67c1bf9 mvfst License Header Update
Reviewed By: lnicco

Differential Revision: D33587012

fbshipit-source-id: 972eb440f0156c9c04aa6e8787561b18295c1a97
2022-01-18 13:56:12 -08:00

26 lines
730 B
Bash
Executable File

#!/bin/bash -eu
# Copyright (c) Meta Platforms, Inc. and 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/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