| 1 | #!/bin/bash |
| 2 | set -eu |
| 3 | |
| 4 | # ---------------------------------------------------------------------------- |
| 5 | # Batch edit the README files of examples. |
| 6 | # |
| 7 | # Before running, edit the examples_edit_readmes_helper to determine |
| 8 | # what is actually changed to what in README files of examples. |
| 9 | # There are various examples. |
| 10 | # ---------------------------------------------------------------------------- |
| 11 | |
| 12 | FIND='find' |
| 13 | if which cygpath.exe > /dev/null; then |
| 14 | FIND='/bin/find' # On Cygwin, make sure to use Cygwin's find, not the one from Windows |
| 15 | fi |
| 16 | |
| 17 | "${FIND}" \ |
| 18 | "${CASTLE_ENGINE_PATH}/examples/" \ |
| 19 | '(' -iname CastleEngineManifest.xml ')' -and \ |
| 20 | '(' -not -iwholename '*/delphi/*' ')' -and \ |
| 21 | '(' -execdir "${CASTLE_ENGINE_PATH}/tools/internal/examples_edit_readmes_helper" ';' ')' |
| 22 |