diff options
Diffstat (limited to 'examples/corelib')
-rwxr-xr-x | examples/corelib/compileall.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/corelib/compileall.sh b/examples/corelib/compileall.sh new file mode 100755 index 00000000..1fed112d --- /dev/null +++ b/examples/corelib/compileall.sh @@ -0,0 +1,16 @@ +#!/bin/sh +FPC=fpc +for f in `find -name '*.lpr'` +do + DIR=`dirname $f` + PROJECT=`basename $f` + LPRNAME=`basename $PROJECT .lpr` + echo Doing $LPRNAME in $DIR + cd $DIR + if [ ! -d units ]; then + echo 'Missing units dir' + mkdir units + fi + $FPC @extrafpc.cfg $PROJECT; + cd .. +done |