Dropping newlines into the string may be permissable, but it's
kind of icky.
FILE=kernel/dconfig_buf.c
echo '/* DO NOT EDIT: Automatically generated by scripts/mkdconfig.sh */' >$FILE
PREFIX='static char *dconfig_buf = '
while read line; do \
echo "$PREFIX"'"'"$line"'\\n"'; \
PREFIX=' '; \
done < .config >> $FILE
echo '/* Go home, there's nothing more to see here */;' >> $FILE
____
david parsons \bi/ still using the 2.0.28 /proc/config.gz patch
\/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/