WiringPi/build
Gordon Henderson c121349a7b Minor changes to messages being printed from wiringPiSetup()
Changed built to work marginally better.
2013-01-15 15:30:26 +00:00

46 lines
648 B
Bash
Executable File

#!/bin/bash
if [ x$1 = "xclean" ]; then
echo Cleaning
echo
cd wiringPi
make clean
cd ../gpio
make clean
cd ../examples
make clean
cd ..
elif [ x$1 = "xuninstall" ]; then
echo Uninstalling
echo
echo "WiringPi library"
cd wiringPi
sudo make uninstall
echo
echo "GPIO Utility"
cd ../gpio
sudo make uninstall
cd ..
else
echo wiringPi Build script - please wait...
echo
echo "WiringPi library"
cd wiringPi
sudo make uninstall
make
sudo make install
echo
echo "GPIO Utility"
cd ../gpio
make
sudo make install
echo
echo "Examples"
cd ../examples
make
cd ..
fi
echo
echo All Done.