dtd syntax ?

Thomas Pegg thomasp at linuxfromscratch.org
Mon Aug 1 07:07:42 PDT 2005


On Mon, 2005-08-01 at 02:16 -0500, alfs at linux2themax.com wrote:
> I was wondering if i got the syntax right.. 
> 
>       <search_replace base="&build_dir;/&gcc-directory;">
>         <file>gcc/Makefile.in</file>
>         <find>\(^CROSS_SYSTEM_HEADER_DIR =\).*</find>
>         <replace>\1 /tools/include at g</replace>
>       </search_replace>
The syntax is right, but you won't get the result you would expect, the
search_replace element does not interface to sed in any way, therefore
for a sed like that it's best to use an execute element. 

> echo "
> #undef STARTFILE_PREFIX_SPEC
> #define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/linux.h

For that it's best to use a textdump element for this.

For an example of both cases see here: http://tinyurl.com/8nl86

--
Thomas
LFS User : 4729 / Linux User : 298329
kitt - Powered by: Linux 2.6.11
09:06:08 up 8 days, 17:11, 7 users, load average: 1.05, 0.87, 0.65

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20050801/e54a016f/attachment.sig>


More information about the alfs-discuss mailing list