forked from mycodeplug/example-codeplug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate.sh
More file actions
executable file
·24 lines (22 loc) · 808 Bytes
/
generate.sh
File metadata and controls
executable file
·24 lines (22 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# This generates the same codeplug as generate.py
# using bash scripting. Linux or macOS only.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
OUTPUT=${OUTPUT:-$DIR/../../OUTPUT}
python -m dzcb \
--pnwdigital \
--seattledmr \
--default-k7abd \
--k7abd $DIR/k7abd \
--repeaterbook-proximity-csv "$DIR/prox.csv" \
--repeaterbook-state texas \
--repeaterbook-name-format '{Callsign} {Nearest City} {Landmark}' \
--scanlists-json "$DIR/scanlists.json" \
--exclude "$DIR/exclude.csv" \
--order "$DIR/order.csv" \
--replacements "$DIR/replacements.csv" \
--anytone \
--dmrconfig "$DIR/example-d878uv.conf" \
--farnsworth-template-json "$DIR/example-md-uv380.json" \
--gb3gf \
-- "$OUTPUT/$(basename "$DIR")"