summaryrefslogtreecommitdiffstats
path: root/lib/control.sh
Commit message (Collapse)AuthorAgeFilesLines
* ob_set_binary_substvar(), ob_substvars(): Improve "clean" namingPatrick McDermott2019-06-241-2/+3
|
* _ob_parse_control_error(): Make arg vars localPatrick McDermott2019-04-231-3/+3
|
* ob_set_*_substvar(), ob_substvars(): Use lowercase eval varsPatrick McDermott2019-04-231-14/+14
|
* ob_set_binary_substvar(), ob_substvars(): Clean up binary package namesPatrick McDermott2019-04-021-0/+5
| | | | | Fixes substvars for binary packages with non-alphanumeric characters in their names.
* ob_parse_control(): Shift optional argumentsPatrick McDermott2019-03-181-0/+1
|
* ob_substvars(): Save untranslated var name for warning messagePatrick McDermott2019-03-181-6/+7
|
* ob_substvars(): Replace here-document with printfPatrick McDermott2019-03-181-4/+1
|
* ob_substvars(): Make package operand optionalPatrick McDermott2019-03-181-4/+12
|
* ob_substvars(): Substitute binary package varsPatrick McDermott2019-03-181-3/+16
|
* ob_set_binary_substvar(): New functionPatrick McDermott2019-03-181-0/+34
|
* ob_set_source_substvar(), ob_substvars(): Rename eval'ed varPatrick McDermott2019-03-181-2/+2
|
* ob_set_source_substvar(): Make sed script a global varPatrick McDermott2019-03-181-9/+10
|
* ob_set_source_substvar(): Replace here-documents with printfPatrick McDermott2019-03-181-9/+3
|
* ob_set_substvar(): Rename to ob_set_source_substvar()Patrick McDermott2019-03-181-6/+7
|
* lib/control.sh: Wrap long linesPatrick McDermott2019-03-181-7/+10
|
* ob_set_substvar(): Replace echo with a here-documentPatrick McDermott2019-03-181-2/+5
|
* ob_set_substvar(): No it can'tPatrick McDermott2019-03-181-1/+0
| | | | | | read only reads one line. It could be put in a loop, but then it would trim whitespace from every line (without some hacks to flag the first line and detect the last line), which is undesired.
* Revert "ob_set_substvar(): Replace sed with read"Patrick McDermott2019-03-181-3/+10
| | | | This reverts commit 96851fd522ae3540314ac5c5d4d4fbec1448ca4b.
* _OB_LF: Make publicPatrick McDermott2019-03-171-1/+1
|
* ob_parse_control(): Fix another variable name in expansionPatrick McDermott2019-03-171-1/+1
|
* _ob_parse_changelog_error(), _ob_parse_control_error(): Drop field widthPatrick McDermott2019-03-171-2/+2
|
* ob_parse_control(): Fix variable name in expansionPatrick McDermott2019-03-161-1/+1
| | | | Bug found with "set -u" in test suite.
* Add braces to param exps in arith substsPatrick McDermott2019-03-161-2/+2
|
* Fix missing "()" after function names in @detailsPatrick McDermott2019-03-141-4/+4
| | | | | Also fix function name in ob_get_system_plat()'s @details and update ob_error()'s @details.
* Protect against cmd operands beginning with "-"Patrick McDermott2019-03-131-1/+1
|
* ob_parse_changelog(), ob_parse_control(): Explicitly assign null stringsPatrick McDermott2019-03-131-1/+1
| | | | | POSIX say, "If value is not specified, the variable shall be given a null value." Make this explicit, for consistency.
* ob_substvars(): s/while true/while :/Patrick McDermott2019-03-131-1/+1
|
* ob_substvars(), ob_init_package(): Call _ob_error_msg()Patrick McDermott2019-03-131-1/+1
|
* libopkbuild: Abort on invalid function argumentsPatrick McDermott2019-03-131-46/+21
| | | | | | | | | | Shift arguments and abort instead of returning 125. Incorrect numbers of function arguments suggest application/library incompatibilities or serious errors by the application developer. Either way, the application developer should be made immediately aware of this (and not allowed to simply not check return values), and continuing to run and handle any further API calls may be unsafe.
* lib/control.sh, lib/package.sh: Replace echo with here-document in tr commandsPatrick McDermott2019-03-121-2/+8
|
* ob_parse_control(): Rewrite missing fields handlingPatrick McDermott2019-03-121-6/+7
| | | | Get rid of echo and sed.
* ob_parse_control(): Rewrite field checkingPatrick McDermott2019-03-121-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 commandPatrick McDermott2019-03-121-1/+1
|
* ob_set_substvar(): Don't allow "_" in variable namesPatrick McDermott2019-03-121-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 namesPatrick McDermott2019-03-121-0/+11
|
* ob_set_substvar(): Make validation more immediately clearPatrick McDermott2019-03-121-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 readPatrick McDermott2019-03-121-10/+3
|
* _ob_parse_control_error(): Use _ob_warn_msg()Patrick McDermott2019-03-121-12/+3
|
* Use (or plan to use) _ob_warn_msg()Patrick McDermott2019-03-111-2/+4
|
* Revert "ob_parse_control(): Run parse error callback"Patrick McDermott2019-03-111-6/+35
| | | | This reverts commit d80290a2f8c9f069261da78afd2f275e84923d0f.
* ob_parse_control(): Run parse error callbackPatrick McDermott2019-01-051-35/+6
|
* Revert "[WIP] ob_parse_control(): Run an error callback"Patrick McDermott2019-01-051-19/+41
| | | | This reverts commit d1f79411c618a7a3d078430450631dfca85c2a07.
* [WIP] ob_parse_control(): Run an error callbackPatrick McDermott2019-01-051-41/+19
|
* _OB_LF: Define and use newline constantPatrick McDermott2019-01-051-2/+1
|
* ob_parse_control(): Replace [ commands after callbacksPatrick McDermott2019-01-051-4/+2
|
* ob_parse_control(): Update/improve field_cb documentationPatrick McDermott2019-01-051-8/+11
|
* ob_parse_control(): Add a user_data operandPatrick McDermott2019-01-051-6/+10
|
* ob_parse_control(): Pass field name and value as argsPatrick McDermott2019-01-051-17/+8
|
* ob_parse_control(): Replace param prefix/suffix removals with readPatrick McDermott2019-01-051-5/+4
|
* ob_parse_control(): Replace if construct with casePatrick McDermott2019-01-051-54/+55
|