1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-12-07 16:02:14 +03:00
Files
mvfst/install.sh
Ali Shirvani d7b43c2795 Fix mvfst build directory (#201)
Summary:
According to `build_helper.sh` the `MVFST_BUILD_DIR` is `_build/build`.

Pull Request resolved: https://github.com/facebookincubator/mvfst/pull/201

Reviewed By: avasylev

Differential Revision: D26279980

Pulled By: mjoras

fbshipit-source-id: 55ef764155db746bddea70e38dbbd46d486315ca
2021-02-05 12:49:16 -08:00

27 lines
729 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/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