Skip to content

Commit

Permalink
sh clean.sh script that does cleaning
Browse files Browse the repository at this point in the history
Let's encapsulate important steps inside this single script for cleaning up.

As next steps, I'd like to restart buck as part of this script.

#7083
  • Loading branch information
mergennachin committed Nov 27, 2024
1 parent 1dab7a9 commit 8fcd699
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env 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
rm -rf cmake-out pip-out
mkdir cmake-out
6 changes: 3 additions & 3 deletions docs/source/getting-started-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ to ExecuTorch.
>
> ```bash
> # From the root of the executorch repo:
> rm -rf cmake-out pip-out
> sh clean.sh
> git submodule sync
> git submodule update --init
> ```
Expand Down Expand Up @@ -196,7 +196,7 @@ The ExecuTorch repo uses CMake to build its C++ code. Here, we'll configure it t
```bash
# Clean and configure the CMake build system. Compiled programs will
# appear in the executorch/cmake-out directory we create here.
(rm -rf cmake-out && mkdir cmake-out && cd cmake-out && cmake ..)
(sh clean.sh && cd cmake-out && cmake ..)
# Build the executor_runner target
cmake --build cmake-out --target executor_runner -j9
Expand All @@ -213,7 +213,7 @@ The ExecuTorch repo uses CMake to build its C++ code. Here, we'll configure it t
>
> ```bash
> # From the root of the executorch repo:
> rm -rf cmake-out pip-out
> sh clean.sh
> git submodule sync
> git submodule update --init
> ```
Expand Down

0 comments on commit 8fcd699

Please sign in to comment.