mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +00:00
config: add generated help entries only if present
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
53892de14c
commit
508003189a
@ -95,8 +95,10 @@ define build_gen_choice_in
|
||||
fi; \
|
||||
sed -r -e '/^## depends on /!d; s/^## / /;' $${file} 2>/dev/null;\
|
||||
sed -r -e '/^## select /!d; s/^## / /;' $${file} 2>/dev/null; \
|
||||
echo " help"; \
|
||||
sed -r -e '/^## help ?/!d; s/^## help ?/ /;' $${file} 2>/dev/null; \
|
||||
if grep -E '^## help' $${file} >/dev/null 2>&1; then \
|
||||
echo " help"; \
|
||||
sed -r -e '/^## help ?/!d; s/^## help ?/ /;' $${file} 2>/dev/null; \
|
||||
fi; \
|
||||
echo ""; \
|
||||
done; \
|
||||
echo "endchoice"; \
|
||||
@ -159,8 +161,10 @@ define build_gen_menu_in
|
||||
echo " prompt \"$${entry}\""; \
|
||||
sed -r -e '/^## depends on /!d; s/^## / /;' $${file} 2>/dev/null;\
|
||||
sed -r -e '/^## select /!d; s/^## / /;' $${file} 2>/dev/null; \
|
||||
echo " help"; \
|
||||
sed -r -e '/^## help ?/!d; s/^## help ?/ /;' $${file} 2>/dev/null; \
|
||||
if grep -E '^## help' $${file} >/dev/null 2>&1; then \
|
||||
echo " help"; \
|
||||
sed -r -e '/^## help ?/!d; s/^## help ?/ /;' $${file} 2>/dev/null; \
|
||||
fi; \
|
||||
echo ""; \
|
||||
echo "if $(3)_$${_entry}"; \
|
||||
echo "source \"$${file}\""; \
|
||||
|
Loading…
Reference in New Issue
Block a user