Skip to content

Commit 8fcd699

Browse files
committed
sh clean.sh script that does cleaning
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
1 parent 1dab7a9 commit 8fcd699

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

clean.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree
7+
8+
set -eu
9+
rm -rf cmake-out pip-out
10+
mkdir cmake-out

docs/source/getting-started-setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ to ExecuTorch.
113113
>
114114
> ```bash
115115
> # From the root of the executorch repo:
116-
> rm -rf cmake-out pip-out
116+
> sh clean.sh
117117
> git submodule sync
118118
> git submodule update --init
119119
> ```
@@ -196,7 +196,7 @@ The ExecuTorch repo uses CMake to build its C++ code. Here, we'll configure it t
196196
```bash
197197
# Clean and configure the CMake build system. Compiled programs will
198198
# appear in the executorch/cmake-out directory we create here.
199-
(rm -rf cmake-out && mkdir cmake-out && cd cmake-out && cmake ..)
199+
(sh clean.sh && cd cmake-out && cmake ..)
200200

201201
# Build the executor_runner target
202202
cmake --build cmake-out --target executor_runner -j9
@@ -213,7 +213,7 @@ The ExecuTorch repo uses CMake to build its C++ code. Here, we'll configure it t
213213
>
214214
> ```bash
215215
> # From the root of the executorch repo:
216-
> rm -rf cmake-out pip-out
216+
> sh clean.sh
217217
> git submodule sync
218218
> git submodule update --init
219219
> ```

0 commit comments

Comments
 (0)