12345678910111213141516171819 |
- #!/bin/bash
- TARGETS=("demo1" "demo2")
- demo2() {
- PYTHONPATH=./src ./build/demo2
- }
- demo1() {
- python3 src/demo1_get-price.py
- }
- # determine target from argument
- if [[ " ${TARGETS[@]} " =~ " $1 " ]]; then
- "$1"
- else
- echo "Available targets: ${TARGETS[*]}"
- echo "Usage: $0 [target]"
- fi
|