| 1 | #!/bin/bash |
| 2 | set -eu |
| 3 | |
| 4 | # ---------------------------------------------------------------------------- |
| 5 | # For most projects, run "castle-engine generate-program" to regenerate |
| 6 | # |
| 7 | # - lpi |
| 8 | # - dproj |
| 9 | # - dpr (if game_units are specified in manifest) |
| 10 | # |
| 11 | # Exceptions are: |
| 12 | # |
| 13 | # - Lazarus (LCL) specific projects |
| 14 | # (leave LPI to be managed using Lazarus and specify LCL packages, |
| 15 | # and DPROJ doesn't make sense for these projects). |
| 16 | # TODO: We'd like to limit these projects to only "examples/lazarus/*", |
| 17 | # but for now we also have 2 projects in examples/audio/ that use LCL. |
| 18 | # |
| 19 | # - Delphi (VCL, FMX) or C++ Builder specific projects |
| 20 | # (only DPROJ is defined there, not Lazarus stuff like LPI). |
| 21 | # |
| 22 | # - simplest_manifest_test |
| 23 | # (we deliberately do not store dpr/lpi/dproj in this demo). |
| 24 | # ---------------------------------------------------------------------------- |
| 25 | |
| 26 | FIND='find' |
| 27 | if which cygpath.exe > /dev/null; then |
| 28 | FIND='/bin/find' # On Cygwin, make sure to use Cygwin's find, not the one from Windows |
| 29 | fi |
| 30 | |
| 31 | "${FIND}" \ |
| 32 | "${CASTLE_ENGINE_PATH}/examples/" \ |
| 33 | '(' -iname CastleEngineManifest.xml ')' -and \ |
| 34 | '(' -not -iwholename '*/simplest_manifest_test/*' ')' -and \ |
| 35 | '(' -not -iwholename '*/delphi/*' ')' -and \ |
| 36 | '(' -execdir bash -c 'if ls *.lfm > /dev/null 2>&1; then echo `pwd`": LCL project"; else castle-engine generate-program --guid-from-name; fi' ';' ')' |