2019-01-26 11:40:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Script for setting up everything that is needed and then running donate-cpu-server.py as
|
|
|
|
# a local server for testing.
|
|
|
|
# To start a real server instead of a local one simply remove the "--test" parameter.
|
|
|
|
|
|
|
|
# You can move this script to another location but then you have to set this path accordingly.
|
|
|
|
cppcheck_tools_path=..
|
|
|
|
|
|
|
|
# Paths that should not be changed:
|
|
|
|
dacaathome_path=~/daca@home
|
|
|
|
donatedresults_path=${dacaathome_path}/donated-results
|
|
|
|
|
|
|
|
if [ ! -d "${dacaathome_path}" ]
|
|
|
|
then
|
|
|
|
mkdir "${dacaathome_path}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d "${donatedresults_path}" ]
|
|
|
|
then
|
|
|
|
mkdir "${donatedresults_path}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f "${dacaathome_path}/packages.txt" ]
|
|
|
|
then
|
2020-01-26 18:39:37 +01:00
|
|
|
"${cppcheck_tools_path}/daca2-getpackages.py" > "${dacaathome_path}/packages.txt"
|
2019-01-26 11:40:02 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
while :
|
|
|
|
do
|
2019-10-26 21:10:21 +02:00
|
|
|
"${cppcheck_tools_path}/donate-cpu-server.py" --test
|
2019-01-26 11:40:02 +01:00
|
|
|
done
|