Skip to content

Commit

Permalink
tool: make bin range
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Mar 21, 2024
1 parent a148808 commit cd24294
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/make-bin-range.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -epx

SN=${BUOYSN}
N0=$1
N1=$2
OUT=$3

echo "SN: ${SN}"
echo "Building binaries in range ${N0} to ${N1}, output dir: ${OUT}"

for n in $(seq ${N0} ${N1}); do
n=$(printf "%03d" ${n})
NSN="${SN}${n}"
BUOYSN=${NSN} GPS_PERIOD=${GPS_PERIOD} GPS_HEARTBEAT=${GPS_HEARTBEAT} SYNC_PERIOD=${SYNC_PERIOD} make T=r bin
mv target/sfy-buoy.bin "${OUT}/${NSN}.bin"
done

0 comments on commit cd24294

Please sign in to comment.