Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 2 | # |
Saul Romero | cacda17 | 2023-03-10 14:23:41 +0000 | [diff] [blame] | 3 | # Copyright (c) 2019-2023 Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | set -e |
| 9 | |
| 10 | if [ -d artefacts ]; then |
Zelalem | 917b43e | 2020-08-04 11:39:55 -0500 | [diff] [blame] | 11 | # Remove everything except logs and scan-build artefacts such as |
| 12 | # .html, .js and .css files useful for offline debug of static |
Saul Romero | cacda17 | 2023-03-10 14:23:41 +0000 | [diff] [blame] | 13 | # analysis defects. The .elf, .bin and .dump are needed for code |
| 14 | # coverage |
| 15 | find artefacts -type f -not \( -name "*.log" -o -name "*.html" -o -name "*.js" -o -name "*.css" -o -name "*.elf" -o -name "*.bin" -o -name "*.dump" \) -exec rm -f {} + |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 16 | fi |