mirror of
https://github.com/facebookexperimental/reverie.git
synced 2024-11-28 01:06:45 +00:00
03cbd6044d
Summary: Followed guide here https://www.internalfb.com/intern/wiki/Linting/License_Lint/ to add fbcode/hermetic_infra/** code to license linter. As we have parts of our code shipped as Open Source it's important to get this automated This diff is updating existing file's licenses to not get conflict after lint rule enablement Reviewed By: jasonwhite Differential Revision: D40674080 fbshipit-source-id: da6ecac036f8964619cf7912058f3a911558e7b1
28 lines
621 B
Bash
Executable file
28 lines
621 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the BSD-style license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
# fbmake will pass --install-dir and --fbcode--dir while
|
|
# buck won't pass it. So drop all arguments except for the last two
|
|
while [[ $# -gt 1 ]]; do
|
|
shift;
|
|
done
|
|
|
|
src=$1
|
|
|
|
shift
|
|
|
|
path=$INSTALL_DIR
|
|
[[ ! -d $path ]] && mkdir -p "$path";
|
|
|
|
output_file=$(basename "$src")
|
|
output=$INSTALL_DIR/${output_file%.*}
|
|
|
|
echo "compiling $output from $src"
|
|
|
|
cc=clang.par
|
|
|
|
${cc} -nostdlib -o "$output" "$src" "$*"
|