30 lines
392 B
Plaintext
30 lines
392 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
function check_package()
|
||
|
{
|
||
|
printf "\tChecking for ${1}... "
|
||
|
|
||
|
${1} --version &> /dev/null
|
||
|
|
||
|
if [ ! $? == 0 ]
|
||
|
then
|
||
|
echo "Failed!"
|
||
|
echo ""
|
||
|
echo "Please install ${1}!"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
echo "Found."
|
||
|
}
|
||
|
|
||
|
echo "Checking for dependencies:"
|
||
|
|
||
|
check_package python3
|
||
|
check_package pip3
|
||
|
check_package gcc
|
||
|
check_package make
|
||
|
check_package aplay
|
||
|
|
||
|
echo ""
|
||
|
echo "Ready to install."
|