remote-evdev-python/setup

22 lines
539 B
Plaintext
Raw Normal View History

2022-07-21 19:09:12 +00:00
#!/bin/sh
2022-07-21 19:12:08 +00:00
git submodule init remote-evdev
git submodule update remote-evdev
2022-07-21 19:09:12 +00:00
PYTHON="$(whatis -w 'python3.1*' | cut -d " " -f1)"
PIP="$PYTHON -m pip"
2022-07-21 20:03:55 +00:00
$PIP install wheel
$PIP install ./remote-evdev
2022-07-21 19:09:12 +00:00
if [ -z ${var+x} ]; then
cp vm_guest_example.sh guest
cp vm_host_example.sh host
$PYTHON ./test-evdev.py
else if [[ "$1" == "guest" ]]; then
cp vm_guest_example.sh guest
$PYTHON ./test-evdev.py guest
else if [[ "$1" == "host" ]]; then
cp vm_host_example.sh host
$PYTHON ./test-evdev.py host
else
echo "unknown argument $1"
fi; fi; fi