From 289afe8d2966f47b61d041e5e1f922fc7c277415 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 24 Feb 2011 12:07:30 +0000 Subject: [PATCH] jw-build-functions.sh: Miscellaneous fixes - Remove include statements from section output - Fix reset toplevel section --- scripts/jw-build-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/jw-build-functions.sh b/scripts/jw-build-functions.sh index 3723025f..74e69a4c 100644 --- a/scripts/jw-build-functions.sh +++ b/scripts/jw-build-functions.sh @@ -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()