mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 21:07:54 +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; \
|
fi; \
|
||||||
sed -r -e '/^## depends on /!d; s/^## / /;' $${file} 2>/dev/null;\
|
sed -r -e '/^## depends on /!d; s/^## / /;' $${file} 2>/dev/null;\
|
||||||
sed -r -e '/^## select /!d; s/^## / /;' $${file} 2>/dev/null; \
|
sed -r -e '/^## select /!d; s/^## / /;' $${file} 2>/dev/null; \
|
||||||
echo " help"; \
|
if grep -E '^## help' $${file} >/dev/null 2>&1; then \
|
||||||
sed -r -e '/^## help ?/!d; s/^## help ?/ /;' $${file} 2>/dev/null; \
|
echo " help"; \
|
||||||
|
sed -r -e '/^## help ?/!d; s/^## help ?/ /;' $${file} 2>/dev/null; \
|
||||||
|
fi; \
|
||||||
echo ""; \
|
echo ""; \
|
||||||
done; \
|
done; \
|
||||||
echo "endchoice"; \
|
echo "endchoice"; \
|
||||||
@ -159,8 +161,10 @@ define build_gen_menu_in
|
|||||||
echo " prompt \"$${entry}\""; \
|
echo " prompt \"$${entry}\""; \
|
||||||
sed -r -e '/^## depends on /!d; s/^## / /;' $${file} 2>/dev/null;\
|
sed -r -e '/^## depends on /!d; s/^## / /;' $${file} 2>/dev/null;\
|
||||||
sed -r -e '/^## select /!d; s/^## / /;' $${file} 2>/dev/null; \
|
sed -r -e '/^## select /!d; s/^## / /;' $${file} 2>/dev/null; \
|
||||||
echo " help"; \
|
if grep -E '^## help' $${file} >/dev/null 2>&1; then \
|
||||||
sed -r -e '/^## help ?/!d; s/^## help ?/ /;' $${file} 2>/dev/null; \
|
echo " help"; \
|
||||||
|
sed -r -e '/^## help ?/!d; s/^## help ?/ /;' $${file} 2>/dev/null; \
|
||||||
|
fi; \
|
||||||
echo ""; \
|
echo ""; \
|
||||||
echo "if $(3)_$${_entry}"; \
|
echo "if $(3)_$${_entry}"; \
|
||||||
echo "source \"$${file}\""; \
|
echo "source \"$${file}\""; \
|
||||||
|
Loading…
Reference in New Issue
Block a user