summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/apps/compileall.sh16
-rwxr-xr-xexamples/corelib/compileall.sh16
2 files changed, 32 insertions, 0 deletions
diff --git a/examples/apps/compileall.sh b/examples/apps/compileall.sh
new file mode 100755
index 00000000..1fed112d
--- /dev/null
+++ b/examples/apps/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
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