Commit e78b0de
committed
Allow specifying the path to odk at configure time.
The name and location of the main `odk` script will change in ODK 1.7:
currently (up to ODK 1.6), the script is in `/tools/odk.py`; starting
from ODK 1.7, it will be in `/usr/local/bin/odk`. Docker images for ODK
1.7 will include symlinks so that invoking `/tools/odk.py` will still
work, but the recommended way to invoke the script will be to simply
call `odk` (no `.py` extension, and fully relying on the shell to find
the executable in the PATH).
This commit adds a configure-time option to the ODK Runner to specify
how the ODK script should be invoked. The default is `/tools/odk.py`,
for compatibility with both pre- and post-1.7 images. Run the configure
script with `--with-odk-executable=odk` to build a runner that will work
only on post-1.7 images.
At some point after the publication of ODK 1.7, the default value will
change to `odk`, so that it would be required to use
`--with-odk-executable=/tools/odk.py` to build a runner that will keep
working with pre-1.7 images.1 parent 61ed082 commit e78b0de
4 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments