Subject: Escape Character...
To: None <tech-pkg@netbsd.org>
From: Yosep <yoskim@NMSU.Edu>
List: tech-pkg
Date: 06/30/2003 15:23:35
Hello!

I have the following code in my Makefile

my_RCS_ID=	$NetBSD$

...

pre-install:
	${SED} -e 's:@PREFIX@:${my_RCS_ID}:' \
                ${WRKSRC}/my_file.sh > ${WRKSRC}/my_file.sh


However, this code doesn't work right, because my_RCS_ID variable contains
something that starts out with a $ sign.  So, at the end, in place of
@PREFIX@, my_file.sh would have "etBSD" or something bizarre.

How can I fix this problem, so that I can have "$NetBSD" in place of
"@PREFIX"?  Any would be greatly appreciated.

thanks!



=============
   |\/\/|   |  Yosep Kim
   |,,,,|   |  NMSU Computer Lab Assistant
   |    |   |  Computer Science, B.S.
  [|^  ^|]  |  New Mexico State Unversity
    \__/    |  http://web.nmsu.edu/~yoskim
=============
 PHIL 4:13