Sorted a variable initialisation issue that was giving incorrect results

with wiringPiISR.
Added the ability to readall/reset from extension modules.
Changed the build script to use /bin/sh rather than /bin/bash as it seems
some installations don't have /bin/bash (or if they do, then the people who
are telling me that ./build gives them command not found are wrong)
This commit is contained in:
Gordon Henderson
2013-05-25 13:02:02 +01:00
parent 711017ec36
commit 348bc739d1
5 changed files with 122 additions and 49 deletions

17
build
View File

@@ -1,7 +1,6 @@
#!/bin/bash
#!/bin/sh
check-make-ok()
{
check_make_ok() {
if [ $? != 0 ]; then
echo ""
echo "Make Failed..."
@@ -51,26 +50,26 @@ fi
cd wiringPi
sudo make uninstall
make
check-make-ok
check_make_ok
sudo make install
check-make-ok
check_make_ok
echo
echo "WiringPi Devices Library"
cd ../devLib
sudo make uninstall
make
check-make-ok
check_make_ok
sudo make install
check-make-ok
check_make_ok
echo
echo "GPIO Utility"
cd ../gpio
make
check-make-ok
check_make_ok
sudo make install
check-make-ok
check_make_ok
# echo
# echo "Examples"