2024-01-01 01:04:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# -*- mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
|
|
|
|
|
|
|
prog=`basename $0 .bash`
|
|
|
|
ROLE=toxcore
|
2024-01-04 14:53:42 +00:00
|
|
|
PREFIX=/usr/local
|
2024-01-01 01:04:40 +00:00
|
|
|
|
2024-01-04 14:53:42 +00:00
|
|
|
. /usr/local/bin/usr_local_tput.bash
|
2024-01-01 01:04:40 +00:00
|
|
|
# we install into /var/local/bin and it takes precedence
|
|
|
|
# export PATH=$PREFIX/bin:$PATH
|
|
|
|
#. /var/local/src/var_local_src.bash || exit 2
|
|
|
|
[ `id -u` -eq 0 ] && ERROR $prog should not be run as root && exit 3
|
|
|
|
|
|
|
|
if [ "$#" -eq 0 ] ; then
|
|
|
|
cd $PREFIX/src || exit 2
|
|
|
|
WD=$PWD
|
|
|
|
|
2024-01-04 14:53:42 +00:00
|
|
|
bash c-toxcore.bash # || exit 3$?
|
|
|
|
bash tox_profile.bash # || 4$?
|
|
|
|
# sh mitogen.bash
|
|
|
|
# sh toxcore_docker.bash || exit 4$?
|
|
|
|
# which sdwdate >/dev/null 2>/dev/null || \
|
|
|
|
# [ -f $PREFIX/bin/sdwdate.bash ] || \
|
|
|
|
# sh sdwdate.bash
|
|
|
|
|
|
|
|
sh gridfire.bash # || exit 6$?
|
|
|
|
sh pyassuan.bash #|| exit 7$?
|
|
|
|
sh tinfoilhat.shmoo.com.bash
|
|
|
|
# sh negotiator.bash
|
2024-01-01 01:04:40 +00:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
elif [ "$1" = 'check' ] ; then
|
|
|
|
exit 0
|
2024-01-08 12:51:06 +00:00
|
|
|
msys_run_checks_pip3
|
|
|
|
msys_var_local_src_prog_key check || exit 10$?
|
2024-01-01 01:04:40 +00:00
|
|
|
exit $?
|
|
|
|
|
|
|
|
elif [ "$1" = 'lint' ] ; then
|
|
|
|
exit 0
|
|
|
|
ols_run_tests_shellcheck $ROLE || exit 2$?
|
2024-01-08 12:51:06 +00:00
|
|
|
msys_var_local_src_prog_key $1 || exit 21$?
|
|
|
|
# ols_run_tests_pylint || exit 22$?
|
2024-01-01 01:04:40 +00:00
|
|
|
|
|
|
|
elif [ "$1" = 'test' ] ; then
|
|
|
|
exit 0
|
2024-01-08 12:51:06 +00:00
|
|
|
msys_var_local_src_prog_key $1 || exit 30$?
|
|
|
|
msys_check_pips_inst
|
|
|
|
msys_gentoo_test_imports || exit 32$?
|
2024-01-01 01:04:40 +00:00
|
|
|
#hangs /usr/bin/expect gpgkey_test_gpg.exp foobar || exit 31$?
|
|
|
|
|
|
|
|
fi
|