1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-05 23:10:12 +00:00
trezor-firmware/legacy/script/setup
Tomas Susanka cfa14dcca0 legacy: improve script/setup
I believe the files were not cleared properly and switching between
emulator and firmware builds may have been troublesome.

Two changes:

1. `git clean` cleans only in the working tree and subdirectories.
We need to clear the related projects as well.

2. `vendor/QR-Code-generator/c/qrcodegen.{o,d}` are not git ignored
and since we use the `X` flag they are not removed. Changing to `x`,
which also removes untracked files.
2020-02-18 13:39:24 +00:00

14 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
# script/setup: Set up application for the first time after cloning, or set it
# back to the initial first unused state.
set -e
cd "$(dirname "$0")/.."
script/bootstrap
git clean -fdX . ../crypto ../common ../storage
git submodule foreach git clean -fdx