httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: [Patch] Support additional module subdirs
Date Thu, 16 Apr 1998 16:03:52 GMT

In article <199804161520.LAA09702@siam.gensym> you wrote:

>[...]
> +echo $AUTOLIBS | tr ' ' '\12' \
> + | sed -e 's/$/ \\/'  -e 's/^/  /'  -e '$s/ \\//' \
> + >> Makefile
>  echo "" >>Makefile

Hmmmm.. be careful, Ben. The "tr" is not very portable, I think.
Wouldn't it be better to make it manually in a for-loop:

for lib in $AUTOLIBS; do
	echo "$lib" | awk '{ printf(" \\\n  %s", $0) }' >>Makefile
done
echo "" >>Makefile

This should result in the same and avoids both "tr" and 
the complicated sed-hacks.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message