mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
jw-build-functions.sh: Miscellaneous fixes
- Remove include statements from section output - Fix reset toplevel section
This commit is contained in:
parent
2cd9d26eef
commit
289afe8d29
1 changed files with 2 additions and 2 deletions
|
|
@ -51,11 +51,11 @@ _ytools_probe_config_paths()
|
|||
_ytools_cat_section()
|
||||
{
|
||||
if [ "$2" ]; then
|
||||
sed -n "/\[$2\]/,/[^ ]*\[/ p" $1 | sed '/[^ ]*\[/ d'
|
||||
sed -n "/\[$2\]/,/[^ ]*\[/ p" $1 | sed '/[^ ]*\[/ d; /^[ ]*include[ ]/ d'
|
||||
return
|
||||
fi
|
||||
|
||||
sed -n '0,/[^ ]*\[/ p' | sed '/[^ ]*\[/ d; s/=.*/=/' $1
|
||||
sed -n '0,/[^ ]*\[/ p' | sed '/[^ ]*\[/ d; /^[ ]*include[ ]/ d' $1
|
||||
}
|
||||
|
||||
_ytools_format_config()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue