[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: $(shell) strips CRLF
From: |
Bryan Miller |
Subject: |
RE: $(shell) strips CRLF |
Date: |
Thu, 25 Apr 2002 22:30:18 -0700 |
Well it was a quick-n-dirty way to get a config_spec into a C data structure.
CONFIG_SPEC := $(shell cleartool catcs)
for some developers that wanted to be able to dump diagnostic info from a serial
port during remote field testing. It's hard to read a cspec as one line
continuous line :-(
Cheers,
Bryan
> -----Original Message-----
> From: Paul D. Smith [mailto:address@hidden Behalf
> Of Paul D.
> Smith
> Sent: Thursday, April 25, 2002 1:37 PM
> To: address@hidden
> Cc: address@hidden
> Subject: Re: $(shell) strips CRLF
>
>
> %% "Bryan Miller" <address@hidden> writes:
>
> bm> I have a makefile that performs a command like
>
> bm> FOO := $(shell cat foo)
>
> bm> where foo is a multiline ASCII text file. For some reason the
> bm> $(shell) bit is stripping of the hex ODOA off the end
> of the lines
> bm> so FOO is just one long line.
>
> Yes. Think of $(shell ...) as make's answer to the shell's backticks
> operation.
>
> Having newlines in a make variable is not useful anyway.
>
> --
> --------------------------------------------------------------
> -----------------
> Paul D. Smith <address@hidden> Find some GNU make tips at:
> http://www.gnu.org
http://www.paulandlesley.org/gmake/
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- $(shell) strips CRLF, Bryan Miller, 2002/04/25
- Re: $(shell) strips CRLF, Eli Zaretskii, 2002/04/26
- RE: $(shell) strips CRLF, Bryan Miller, 2002/04/26
- RE: $(shell) strips CRLF, Paul D. Smith, 2002/04/26
- RE: $(shell) strips CRLF, Bryan Miller, 2002/04/26
- RE: $(shell) strips CRLF, Paul D. Smith, 2002/04/26
- RE: $(shell) strips CRLF, Bryan Miller, 2002/04/26
- RE: $(shell) strips CRLF, Paul D. Smith, 2002/04/26
- RE: Exiting make upon error..., Bryan Miller, 2002/04/27