Commit graph

45 commits

Author SHA1 Message Date
Marc Durdin
f394245636 maint(common): consolidate builder scripts
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by
giving the scripts more appropriate names. Most build scripts should use
builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh.
Documented in resources/build/README.md.

Renames:
* resources/build/builder.inc.sh to resources/build/builder-full.inc.sh
* resources/build/build-utils.sh to resources/build/builder-basic.inc.sh

Other changes:
* Moves Android-specific functions out of builder-basic.inc.sh and into
  android/build.sh.
* Renames functions in builder-basic.inc.sh

More functions may be moved from builder-basic.inc.sh into utils.inc.sh
or other scripts in the future.

Fixes: #14065
Build-bot: build all
Test-bot: skip
2025-08-02 08:11:24 +10:00
Marc Durdin
65158a0526 maint(common): rename shellHelperFunctions.sh to utils.inc.sh
Adds documentation for various functions, removes unused functions (a
couple of simple, very lightly used functions were unDRYed; these could
go back the other way across all shell scripts if necessary). TODO items
noted for follow-up refactoring.

Fixes: #14275
Relates-to: #14269
Build-bot: build all
Test-bot: skip
2025-08-02 06:58:40 +10:00
Eberhard Beilharz
9c6838096e
maint(ios): add TC build scripts for iOS
Fixes: #14189
Part-of: #13399
Build-bot: release ios
Test-bot: skip
2025-07-02 19:06:35 +02:00
Marc Durdin
ed1c106c2e refactor(ios): move ios Engine help in-repo
Relates-to: #12347
2024-10-31 10:13:00 +07:00
Marc Durdin
016a6f0225 chore(common): address review comments 2024-10-09 08:12:21 +07:00
Marc Durdin
640d3e5096 test(developer): add markdown link check test for product documentation
Adds check-markdown package that parses .md files, looks for links and
images, and verifies that they are valid links (for internal links).
2024-09-25 15:51:32 -07:00
Marc Durdin
cd8121ef65 chore(common): builder scripts now use /resources/build/builder.inc.sh
Note: there is a bit of potential confusion about the difference between
/resources/builder.inc.sh (the full implementation for builder scripts),
and /resources/build/builder.inc.sh (the source script that builder
scripts should always use).

This allows us to make assumptions that will always be true for builder
scripts that may not be true for other scripts, such as setting base
folder.
2024-05-02 15:54:31 +07:00
Marc Durdin
0f390d47cc chore(common): maintenance on build scripts - cd
Fixes #11324.

* Always `cd "$THIS_SCRIPT_PATH"`
* Remove unnecessary `cd` from all build.sh
* Remove unnecessary `set -eu` from all build.sh (and `# set -x`)
* Replace old build-utils.sh incantation in a few build.sh scripts
2024-05-02 15:54:29 +07:00
jahorton
0341a4a3d1 chore(ios): minor build-script cleanup 2023-07-06 12:15:04 +07:00
Joshua A. Horton
b5d0d7d5f8 change(ios): adds targets to primary build.sh 2023-07-03 15:03:55 +07:00
Joshua A. Horton
ab237cf3fc chore(ios): addresses some PR review concerns 2023-06-30 12:54:22 +07:00
Joshua A. Horton
90a08f1d55 change(ios): mass rework of ios-related scripts 2023-06-27 10:33:37 +07:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
Marc Durdin
6472c96758 [iOS] Don't rebuild KMEI when building FV as well as Keyman 2019-05-24 06:39:10 +10:00
Marc Durdin
7edd901f8b [iOS] Add oem builds to build.sh 2019-05-22 14:48:40 +10:00
Marc Durdin
a9113c8f82
Merge branch 'master' into beta-p3s2-to-master 2018-05-04 21:06:21 +07:00
Joshua A. Horton
e53bf7fcaf Properly escapes ' and \ as popup keys. 2018-04-25 12:46:45 +07:00
Marc Durdin
678cbe371b Update to version 11.0 for build-impacting version numbers (and reduce hard-coded references where possible) 2018-03-22 14:55:30 +07:00
Joshua A. Horton
b42e8d8e49 Merge branch 'master' into ios-debug-kmw 2018-01-29 12:58:37 +07:00
Joshua A. Horton
447738b1d0 Adjusts the embedding-engine links to KMW for their build processes. 2018-01-22 14:12:28 +07:00
Gabriel Wong
b5f57b2cb6 Use debug KMW for debug iOS builds 2017-12-18 12:31:46 +07:00
Jacob Bullock
ad286bb836 removing carthage folder on clean 2017-12-06 19:37:19 -07:00
Jacob Bullock
2160f23f04 replacing tabs with spaces 2017-12-06 06:40:38 -07:00
Jacob Bullock
37a4990543 adding carthage to build process and including a flag to ignore to speed up local builds 2017-12-06 06:33:28 -07:00
Joshua A. Horton
154dbc415f Final PR review concerns, round 1. 2017-11-15 15:01:22 +07:00
Joshua A. Horton
bd93f2cb3b Cleaned the build up; side products no longer appear in engine/KMEI/build. 2017-11-15 11:51:57 +07:00
Joshua A. Horton
3bb7adf296 Moved all build products into a common subdirectory of ios, allowing Xcode to reuse intermediate products as appropriate. 2017-11-15 11:46:17 +07:00
Joshua A. Horton
251a714b15 Managed to drop the string-based build command for the non-archived iOS app. 2017-11-15 09:50:59 +07:00
Joshua A. Horton
2e1ca2513d Fixes the non-archive build pathway for the Keyman app. 2017-11-14 12:20:58 +07:00
Joshua A. Horton
f8e8ffaf52 Refactors the build script; added a helper method for setting version numbers. 2017-11-14 10:58:30 +07:00
Joshua A. Horton
368ca7cfb8 Reconfigured the app's build process a bit - there is now a proper dependency link between the projects. 2017-11-13 16:20:18 +07:00
Joshua A. Horton
359c953ab3 Reverts previous change, fixes #403's directly-mentioned error. 2017-11-13 14:55:50 +07:00
Gabriel Wong
23e7ff3c8d Update README and build script 2017-11-07 09:46:05 +07:00
Gabriel Wong
4672048652 Fix build script and set version in KMEI 2017-10-27 12:12:13 +07:00
Gabriel Wong
5d1862032a Merge remote-tracking branch 'origin/master' into ios-engine-migrate-swift 2017-10-20 14:37:27 +07:00
Gabriel Wong
114deece15 Fix build of samples 2017-10-03 11:20:20 +07:00
Gabriel Wong
4ee382b34e Create KeymanEngine framework 2017-10-03 10:48:23 +07:00
Joshua A. Horton
208a0fd27f Corrected the check for archive creation - assertFileExist doesn't work on directories. 2017-10-02 12:44:44 +07:00
Joshua A. Horton
7382952937 Aims to fix automatic codesigning (as now needed) on the build agents via command-line option. 2017-10-02 10:41:23 +07:00
Joshua A. Horton
c4e56872b1 Tweaks the build script to fail if the initial archive file does not properly generate. 2017-10-02 10:34:30 +07:00
Joshua A. Horton
a851aa7b79 Extra retooling of build.sh. 2017-08-25 09:43:20 +07:00
Marc Durdin
0f657a064b Tweak usage 2017-08-21 16:27:13 +07:00
Marc Durdin
002874d93b Remove KMW download and builds from repo instead 2017-08-21 15:39:03 +07:00
Marc Durdin
1f0add3876 Add executable bit 2017-08-21 15:00:08 +07:00
Marc Durdin
606fdb78aa Initial commit 2017-08-21 13:54:29 +07:00