* xlat/gen.sh (gen_header): Process xlat line with sed only when "/*"
substring is present in it.
Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
local unconditional= line
# 1st pass: output directives.
while read line; do
- line=$(printf "%s" "$line" | \
- sed "s|[[:space:]]*/\*.*\*/[[:space:]]*||")
+ case "$line" in
+ */\**)
+ line=$(printf "%s" "$line" |
+ sed "s|[[:space:]]*/\*.*\*/[[:space:]]*||")
+ ;;
+ esac
case $line in
'#stop')
unconditional= val_type=
# 2nd pass: output everything.
while read line; do
- line=$(printf "%s" "$line" | \
- sed "s|[[:space:]]*/\*.*\*/[[:space:]]*||")
+ case "$line" in
+ */\**)
+ line=$(printf "%s" "$line" |
+ sed "s|[[:space:]]*/\*.*\*/[[:space:]]*||")
+ ;;
+ esac
case ${line} in
'#conditional')