1234567891011121314151617181920212223242526272829303132 |
- #!/bin/bash
- set -e
- echo "cp210x-programm 1.0:"
- if [ $UID -ne 0 ]
- then
- echo "Please run in sudo.."
- sleep 3
- exit
- fi
- echo ""
- sudo apt-get install libusb-dev libusb-1.0-0-dev libudev-dev -y
- echo
- git submodule init
- git submodule update
- echo -e "\e[93mMake PyUSB :\e[0m"
- cd pyusb
- ./setup.py build
- ./setup.py install
- echo ""
- echo -e "\e[93mMake cp210x-program :\e[0m"
- cd ..
- ./setup.py build
- ./setup.py install
- echo ""
- echo -e "\e[93mInstall rules:\e[0m"
- sudo cp -v doc/45-cp210x-programming.rules /etc/udev/rules
- echo ""
- echo -e "\e[93mDone.\e[0m"
|