lkml.org 
[lkml]   [1999]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] v1.01 of /proc/.config (ready to eat)
Date
In article <linux.kernel.7certb$u5j@pell.pell.portland.or.us>,
david parsons <o.r.c@p.e.l.l.p.o.r.t.l.a.n.d.o.r.u.s> wrote:
>In article <linux.kernel.Pine.LNX.4.04.9903131653110.31100-100000@redhat1.mmaero.com>,
> <jlewis@lewis.org> wrote:
>>Why are you even using /tmp files?
>>
>>#!/bin/sh
>>
>>echo -e "/* DO NOT EDIT: Automatically generated by scripts/mkdconfig.sh */\n" >./kernel/dconfig_buf.c
>>echo -en "static char *dconfig_buf = \n\"" >> ./kernel/dconfig_buf.c
>>cat .config >> ./kernel/dconfig_buf.c
>>echo "\";" >> ./kernel/dconfig_buf.c
>
> 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
^
|
Grr.

s/there's/there is/
____
david parsons \bi/ Apostrophe considered harmful.
\/

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:2.260 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site