mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2024-12-18 20:47:58 +00:00
1052fd4a08
* Test debian stretch+python3 (#18) * changes starting with python3 explicit * removes python modules which are not available for python3 * exchanges fyzz query parsing with rdflib functionality * fixes interop tests * replaces reduce with for loop in nodb driver * simple python2 -> python3 conversions * adds changes for handling different string handling in python3 * test stretch building with travis * installing python-setuptools in docker * installing python-setuptools in docker * changing python2 to python3 in docker makefiles * changing python2 to python3 and some other test changes * push docker only in master branche * running version of openmtc * fix some port problems * porting path library completly now * restoring travis.yml * testing new travis.yml * add sudo * updating travis OS from trusty to xenial * upgrade pip before * show running docker logs * show more logs * for debugging * showlogs of docker after failure * testing new travis.yml * finish travis.yml * Adding roadmap (#26) * adding roadmap * adding a nicer view for some documents * creating contributions.md (#27) * travis only building on master branch (#25) * deleting some typo * another typo * adding a contributer * bump version to 1.3.0 * better link for contributions * Port and fix simple apps * add version tag
38 lines
875 B
Bash
Executable File
38 lines
875 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
base_path=$(dirname "$(readlink -f "${0}")")
|
|
|
|
################################################################################
|
|
# set app_file
|
|
declare -a app_array
|
|
|
|
app_array=($(find ${base_path} -name "*-final.py"))
|
|
array_length=${#app_array[@]}
|
|
|
|
# print possibilities
|
|
for i in $(seq 1 ${array_length}); do
|
|
path=${app_array[$[${i}-1]]}
|
|
echo "[${i}] $(basename ${path})"
|
|
done
|
|
|
|
# read choice
|
|
while true; do
|
|
read -n 1 -p "Choose the app to start: " choice
|
|
|
|
[[ ${choice} =~ ^[0-9]+$ ]] && \
|
|
[ ${choice} -gt 0 -a ${choice} -le ${array_length} ] && \
|
|
echo && break
|
|
|
|
echo " Wrong choice. Do it again."
|
|
done
|
|
|
|
app_file=${app_array[$[${choice}-1]]}
|
|
|
|
################################################################################
|
|
# run app_file
|
|
cd ${base_path}
|
|
cd ..
|
|
. ../common/prep-env.sh
|
|
cd ${base_path}
|
|
python3 ${app_file}
|