blob: 01c1389e02e067be65ab9d69df82eaa0ea136bf4 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Saul Romerocacda172023-03-10 14:23:41 +00003# Copyright (c) 2019-2023 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8set -e
9
10if [ -d artefacts ]; then
Zelalem917b43e2020-08-04 11:39:55 -050011 # Remove everything except logs and scan-build artefacts such as
12 # .html, .js and .css files useful for offline debug of static
Saul Romerocacda172023-03-10 14:23:41 +000013 # 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 Boudra422bf772019-12-02 11:10:16 +020016fi