fw-clean.sh 335 B

12345678910111213
  1. #!/bin/bash
  2. set -e
  3. # Config
  4. if [ -z "$CONFIG_OK" ]; then source config.sh; fi
  5. if [ -z "$CONFIG_OK" -o "$CONFIG_OK" -eq 0 ]; then echo "$(tput setaf 1)Config NG!$(tput sgr0)" >&2; exit 1; fi
  6. # Clean the temporary directory
  7. TMPDIR=$(dirname "$0")/tmp
  8. rm -rf "$TMPDIR"
  9. # Remove internationalized firmware files
  10. rm -f "${INTLHEX}"*.hex