Files
mesh-forge/scripts/stage-fw-bundle-docs.sh
T
2026-04-11 17:08:12 -07:00

12 lines
345 B
Bash
Executable File

#!/usr/bin/env bash
# Copy README and license files from repo root into the firmware tarball stage when present.
set -euo pipefail
ROOT="${1:?root dir}"
STAGE="${2:?stage dir}"
shopt -s nocaseglob
for f in "$ROOT"/readme* "$ROOT"/license* "$ROOT"/copying* "$ROOT"/copyright*; do
[[ -f "$f" ]] && cp -a "$f" "$STAGE/"
done
shopt -u nocaseglob