Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lib/control.sh, lib/package.sh: Replace echo with here-document in tr commands | Patrick McDermott | 2019-03-12 | 1 | -2/+8 |
| | |||||
* | ob_parse_control(): Rewrite missing fields handling | Patrick McDermott | 2019-03-12 | 1 | -6/+7 |
| | | | | Get rid of echo and sed. | ||||
* | ob_parse_control(): Rewrite field checking | Patrick McDermott | 2019-03-12 | 1 | -23/+26 |
| | | | | | | | Get rid of the echo and sed pipeline and use case constructs instead of "[" commands with "${parameter%word}" expansions. The new logic also will only report duplicate unknown fields once. | ||||
* | ob_substvars(): Replace echo in eval command | Patrick McDermott | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | ob_set_substvar(): Don't allow "_" in variable names | Patrick McDermott | 2019-03-12 | 1 | -2/+2 |
| | | | | | The character was allowed due to the details of the implementation, but the SPF 2.0 specification doesn't allow it. | ||||
* | ob_substvars(): Validate variable names | Patrick McDermott | 2019-03-12 | 1 | -0/+11 |
| | |||||
* | ob_set_substvar(): Make validation more immediately clear | Patrick McDermott | 2019-03-12 | 1 | -4/+2 |
| | | | | | | The original version in 000a27ff used a "${parameter:-word}" default value expansion to detect an empty string. Instead, let the case construct match empty strings directly. | ||||
* | ob_set_substvar(): Replace sed with read | Patrick McDermott | 2019-03-12 | 1 | -10/+3 |
| | |||||
* | _ob_parse_control_error(): Use _ob_warn_msg() | Patrick McDermott | 2019-03-12 | 1 | -12/+3 |
| | |||||
* | Use (or plan to use) _ob_warn_msg() | Patrick McDermott | 2019-03-11 | 1 | -2/+4 |
| | |||||
* | Revert "ob_parse_control(): Run parse error callback" | Patrick McDermott | 2019-03-11 | 1 | -6/+35 |
| | | | | This reverts commit d80290a2f8c9f069261da78afd2f275e84923d0f. | ||||
* | ob_parse_control(): Run parse error callback | Patrick McDermott | 2019-01-05 | 1 | -35/+6 |
| | |||||
* | Revert "[WIP] ob_parse_control(): Run an error callback" | Patrick McDermott | 2019-01-05 | 1 | -19/+41 |
| | | | | This reverts commit d1f79411c618a7a3d078430450631dfca85c2a07. | ||||
* | [WIP] ob_parse_control(): Run an error callback | Patrick McDermott | 2019-01-05 | 1 | -41/+19 |
| | |||||
* | _OB_LF: Define and use newline constant | Patrick McDermott | 2019-01-05 | 1 | -2/+1 |
| | |||||
* | ob_parse_control(): Replace [ commands after callbacks | Patrick McDermott | 2019-01-05 | 1 | -4/+2 |
| | |||||
* | ob_parse_control(): Update/improve field_cb documentation | Patrick McDermott | 2019-01-05 | 1 | -8/+11 |
| | |||||
* | ob_parse_control(): Add a user_data operand | Patrick McDermott | 2019-01-05 | 1 | -6/+10 |
| | |||||
* | ob_parse_control(): Pass field name and value as args | Patrick McDermott | 2019-01-05 | 1 | -17/+8 |
| | |||||
* | ob_parse_control(): Replace param prefix/suffix removals with read | Patrick McDermott | 2019-01-05 | 1 | -5/+4 |
| | |||||
* | ob_parse_control(): Replace if construct with case | Patrick McDermott | 2019-01-05 | 1 | -54/+55 |
| | |||||
* | lib/changelog.sh, lib/control.sh, lib/locale.sh: Update copyright years | Patrick McDermott | 2018-12-29 | 1 | -1/+1 |
| | |||||
* | ob_substvars(): Add a TODO comment | Patrick McDermott | 2018-12-29 | 1 | -0/+1 |
| | |||||
* | ob_substvars(): Document | Patrick McDermott | 2018-12-29 | 1 | -0/+9 |
| | |||||
* | ob_set_substvar(): Improve eval command | Patrick McDermott | 2018-12-29 | 1 | -4/+1 |
| | |||||
* | ob_set_substvar(): Document that 125 is returned if name is empty | Patrick McDermott | 2018-12-29 | 1 | -1/+1 |
| | |||||
* | ob_set_substvar(): Add a TODO comment | Patrick McDermott | 2018-12-28 | 1 | -0/+1 |
| | |||||
* | ob_set_substvar(): Fix successful return value | Patrick McDermott | 2018-12-28 | 1 | -2/+3 |
| | |||||
* | ob_set_substvar(): Document | Patrick McDermott | 2018-12-28 | 1 | -0/+9 |
| | |||||
* | ob_parse_control(): Document | Patrick McDermott | 2018-12-28 | 1 | -0/+23 |
| | |||||
* | ob_set_substvar(): Shorten sed script comments | Patrick McDermott | 2018-12-25 | 1 | -6/+6 |
| | |||||
* | libopkbuild: Move function definitions before points of use | Patrick McDermott | 2018-12-25 | 1 | -29/+29 |
| | |||||
* | libopkbuild: Update header comments, copyright years, & license | Patrick McDermott | 2018-12-24 | 1 | -9/+9 |
| | |||||
* | libopkbuild: Drop include guards | Patrick McDermott | 2018-12-22 | 1 | -3/+0 |
| | |||||
* | ob_use(): Remove | Patrick McDermott | 2018-12-22 | 1 | -3/+0 |
| | |||||
* | _ob_parse_control_error(): Drop quotes around int. | P. J. McDermott | 2013-08-18 | 1 | -1/+1 |
| | |||||
* | lib/*.sh, lib/*/*.sh: Add ".sh" to header comment. | P. J. McDermott | 2013-08-18 | 1 | -1/+1 |
| | |||||
* | lib/*.sh, lib/*/*.sh: Rewrite include guards. | P. J. McDermott | 2013-08-18 | 1 | -2/+2 |
| | | | | This is one step toward adding `set -u` to opkbuild. | ||||
* | lib/control.sh: Reflow long command lines. | P. J. McDermott | 2013-08-18 | 1 | -6/+3 |
| | |||||
* | lib/control.sh: Remove _ob_local. | P. J. McDermott | 2013-08-18 | 1 | -119/+125 |
| | |||||
* | Use cat in ob_parse_{control,changelog}(). | P. J. McDermott | 2012-11-22 | 1 | -1/+3 |
| | | | | This allows lines to be read from standard input. | ||||
* | ob_set_substvar(): Escape single quotes in value. | P. J. McDermott | 2012-11-16 | 1 | -0/+3 |
| | |||||
* | Validate substvar names. | P. J. McDermott | 2012-10-26 | 1 | -1/+9 |
| | |||||
* | Support comments in control files. | P. J. McDermott | 2012-10-25 | 1 | -0/+3 |
| | |||||
* | Remove only newlines in substitution var values. | P. J. McDermott | 2012-10-24 | 1 | -2/+2 |
| | |||||
* | Add _obpco_check_fields to _ob_local args. | P. J. McDermott | 2012-10-24 | 1 | -1/+1 |
| | |||||
* | Make optional first line of control value text. | P. J. McDermott | 2012-10-23 | 1 | -2/+2 |
| | |||||
* | Make optional the space after ":" in control info. | P. J. McDermott | 2012-10-23 | 1 | -1/+2 |
| | |||||
* | Implement ob_substvars(). | P. J. McDermott | 2012-10-23 | 1 | -0/+54 |
| | |||||
* | Implement ob_set_substvar(). | P. J. McDermott | 2012-10-23 | 1 | -0/+30 |
| |