radio_plus_plus/compile.sh

20 lines
442 B
Bash

g++ -o radio *.cpp *.h `wx-config --cxxflags --libs` -lvlc -lcurl -ljsoncpp
if [ -x ./radio ]
then
read -p "Do u want to install the Binary? [y/N] " input
if [ $input = "y" ] || [ $input = "Y" ]
then
mkdir -p ~/.config/radio++/
touch ~/.config/radio++/sender
doas cp -v radio /usr/local/bin/
echo "Finished!"
else
echo "bye :c"
fi
else
echo "something went wrong :/"
echo "exit..."
fi