summaryrefslogtreecommitdiff
path: root/examples/gui/compileall.sh
blob: 1fed112dc0dec857edb59640a7c57f790e67e9f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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