forked from michael-ring/pico-fpcexamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·16 lines (16 loc) · 691 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
IGNOREDEVICES="templates "
curdir=$(pwd)
rm -f results 2>/dev/null
ls $1/*.lpi | while read lpi ; do
echo ##### $lpi
echo $IGNOREDEVICES | grep $(basename $lpi | sed -e "s,^.*-,," -e "s,.lpi,,g") >/dev/null
if [ "$?" != 0 ]; then
echo "Building $lpi"
cd $curdir/$(dirname $lpi)
# lazbuild --build-all $(basename $lpi) | grep -v Hint | grep -v Info | grep -v Note | grep -v Warning | grep -v TCodeToolManager.HandleException | grep -v Compiling | grep -v "Linking" | grep -v "Assembling"
$HOME/fpcupdeluxe/lazarus/lazbuild --build-all $(basename $lpi) | grep -e "lines compiled" -e Fatal -e "Illegal parameter"
echo ""
fi
done
echo ""