From 34f9da7c8fe033fb3855500ab77676120d1bb5e8 Mon Sep 17 00:00:00 2001 From: jathu Date: Mon, 24 Mar 2025 08:37:07 -0700 Subject: [PATCH] add warning --- .gitignore | 2 +- build/build_android_library.sh | 12 ++++++++++++ build/build_apple_frameworks.sh | 12 ++++++++++++ build/build_apple_llm_demo.sh | 12 ++++++++++++ build/create_frameworks.sh | 12 ++++++++++++ build/print_exported_headers.py | 13 +++++++++++++ build/run_android_emulator.sh | 12 ++++++++++++ build/test_ios.sh | 12 ++++++++++++ 8 files changed, 86 insertions(+), 1 deletion(-) create mode 100755 build/build_android_library.sh create mode 100755 build/build_apple_frameworks.sh create mode 100755 build/build_apple_llm_demo.sh create mode 100755 build/create_frameworks.sh create mode 100755 build/print_exported_headers.py create mode 100755 build/run_android_emulator.sh create mode 100755 build/test_ios.sh diff --git a/.gitignore b/.gitignore index 3999e3b5dca..b144b9152f9 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ __pycache__/ arm_test/ buck-out/ buck2-bin/ -build/ +# build/ cmake-android-out/ cmake-ios-out/ cmake-out* diff --git a/build/build_android_library.sh b/build/build_android_library.sh new file mode 100755 index 00000000000..04a62d54df7 --- /dev/null +++ b/build/build_android_library.sh @@ -0,0 +1,12 @@ +#!/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. + +set -eu + +current_file=$(basename "$0") +echo -e "\033[31m[error] $0 has moved to:\033[0m scripts/${current_file}" +exit 1 diff --git a/build/build_apple_frameworks.sh b/build/build_apple_frameworks.sh new file mode 100755 index 00000000000..04a62d54df7 --- /dev/null +++ b/build/build_apple_frameworks.sh @@ -0,0 +1,12 @@ +#!/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. + +set -eu + +current_file=$(basename "$0") +echo -e "\033[31m[error] $0 has moved to:\033[0m scripts/${current_file}" +exit 1 diff --git a/build/build_apple_llm_demo.sh b/build/build_apple_llm_demo.sh new file mode 100755 index 00000000000..04a62d54df7 --- /dev/null +++ b/build/build_apple_llm_demo.sh @@ -0,0 +1,12 @@ +#!/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. + +set -eu + +current_file=$(basename "$0") +echo -e "\033[31m[error] $0 has moved to:\033[0m scripts/${current_file}" +exit 1 diff --git a/build/create_frameworks.sh b/build/create_frameworks.sh new file mode 100755 index 00000000000..04a62d54df7 --- /dev/null +++ b/build/create_frameworks.sh @@ -0,0 +1,12 @@ +#!/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. + +set -eu + +current_file=$(basename "$0") +echo -e "\033[31m[error] $0 has moved to:\033[0m scripts/${current_file}" +exit 1 diff --git a/build/print_exported_headers.py b/build/print_exported_headers.py new file mode 100755 index 00000000000..c678e2440fe --- /dev/null +++ b/build/print_exported_headers.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 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. + +import os +import sys + +current_file=os.path.basename(__file__) +print(f"\033[31m[error] build/{current_file} has moved to:\033[0m scripts/{current_file}") +sys.exit(1) diff --git a/build/run_android_emulator.sh b/build/run_android_emulator.sh new file mode 100755 index 00000000000..04a62d54df7 --- /dev/null +++ b/build/run_android_emulator.sh @@ -0,0 +1,12 @@ +#!/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. + +set -eu + +current_file=$(basename "$0") +echo -e "\033[31m[error] $0 has moved to:\033[0m scripts/${current_file}" +exit 1 diff --git a/build/test_ios.sh b/build/test_ios.sh new file mode 100755 index 00000000000..04a62d54df7 --- /dev/null +++ b/build/test_ios.sh @@ -0,0 +1,12 @@ +#!/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. + +set -eu + +current_file=$(basename "$0") +echo -e "\033[31m[error] $0 has moved to:\033[0m scripts/${current_file}" +exit 1