1#!/bin/bash 2 3set -e 4set -u 5 6DEPS=( 7 libglib2.0-dev 8 libpixman-1-dev 9 libssl-dev 10 libusb-1.0-0-dev 11 mypy 12 pkg-config 13 pylint 14 xxd 15) 16 17if !(echo ${DEPS[@]} | tr " " "\n" | sort --check); then 18 echo 19 echo "WARNING DEPS is not sorted:" 20 echo ${DEPS[@]} 21 echo 22fi 23 24if dpkg -V ${DEPS[@]}; then 25 echo "System dependencies appear to be installed." 26else 27 echo 28 echo "There appear to be missing system dependencies. Please run:" 29 echo 30 echo "sudo apt-get install ${DEPS[@]}" 31 echo 32 exit 1 33fi 34