Re: Probably stupid make question

2008-09-02 Thread Warren Young
Phil Smith wrote: exactly what part of "(obviously I can figure this out, but if I knew offhand it would save me some hassle)" was unclear? He's saying try it and find out: $ cat > foo.sh #!/bin/sh echo $# ^D $ chmod +x foo.sh $ ./foo.sh -Dsomething=c:/Documents and Settings/whatever 3 $ ./foo

RE: Probably stupid make question

2008-08-30 Thread Phil Smith
D] On Behalf Of Christopher Faylor Sent: Saturday, August 30, 2008 6:32 PM To: cygwin@cygwin.com Subject: Re: Probably stupid make question On Sat, Aug 30, 2008 at 01:35:11PM -0700, Phil Smith wrote: >Will shell scripts get > > -Dsomething=c:/Documents and Settings/whatever > >as on

Re: Probably stupid make question

2008-08-30 Thread Christopher Faylor
On Sat, Aug 30, 2008 at 01:35:11PM -0700, Phil Smith wrote: >Will shell scripts get > > -Dsomething=c:/Documents and Settings/whatever > >as one argument, or three? If only there was some way to tell... cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: Probably stupid make question

2008-08-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Phil Smith on 8/30/2008 3:06 PM: > But you've (seemingly inadvertently?) answered the question, Nope, my reply was not inadvertent (I mentioned quoting on purpose). > > P.S. And no, I'm not going to get into a top-posting vs. inline di

RE: Probably stupid make question

2008-08-30 Thread Stephan Mueller
Phil wrote: " Will shell scripts get " " -Dsomething=c:/Documents and Settings/whatever " " as one argument, or three? As I hinted in my (off-topic, sorry) other post, you can figure this out for yourself with trivial scripts in the language of interest. But also, you can note the recurring th

RE: Probably stupid make question

2008-08-30 Thread Phil Smith
that works. Thanks! ...phsiii P.S. And no, I'm not going to get into a top-posting vs. inline discussion -- that boat has sailed. I did remove your email address below, however, including the raw copy in your sig... -Original Message- From: Eric Blake Sent: Saturday, August 30, 2

Re: Probably stupid make question

2008-08-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > -Original Message- > From: cygwin-owner AT cygwin.com Oops - raw email address. http://cygwin.com/acronyms/#PCYMTNQREAIYR Oops - top-posting. http://cygwin.com/acronyms/#TOFU > This is all an argument for using Cy

RE: Probably stupid make question

2008-08-30 Thread Phil Smith
stupid make question On Sat, Aug 30, 2008 at 12:00:14AM -0700, Stephan Mueller wrote: > >Yes, it's awful, but the batch file isn't totally at a loss. If, in >the batch file, you refer to parameters %1 %2 etc., as you've >discovered, the parsing treats equals signs (and semi

Re: Probably stupid make question (cmd a=b)

2008-08-30 Thread Christopher Faylor
On Sat, Aug 30, 2008 at 10:34:36AM -0700, Stephan Mueller wrote: >Creating a test batch file that echos %1 etc and %* is pretty trivial >to create. In mine, I tend to do >@echo echoing percent-n >@echo .%1. .%2. .%3. .%4. .%5. .%6. .%7. .%8. .%9. >and similarly for %* -- the dots w

Re: Probably stupid make question

2008-08-30 Thread Christopher Faylor
On Sat, Aug 30, 2008 at 12:00:14AM -0700, Stephan Mueller wrote: > >Yes, it's awful, but the batch file isn't totally at a loss. If, in >the batch file, you refer to parameters %1 %2 etc., as you've >discovered, the parsing treats equals signs (and semicolons, and >perhaps others; I forget) as spa

RE: Probably stupid make question (cmd a=b)

2008-08-30 Thread Phil Smith
--Original Message- From: Stephan Mueller [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2008 1:35 PM To: Phil Smith; Jay; cygwin@cygwin.com Subject: RE: Probably stupid make question (cmd a=b) Creating a test batch file that echos %1 etc and %* is pretty trivial to create. In mine, I

RE: Probably stupid make question (cmd a=b)

2008-08-30 Thread Stephan Mueller
no-space-in-name location. stephan(); -Original Message- From: Phil Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2008 8:57 AM To: Jay; cygwin@cygwin.com; Stephan Mueller Subject: RE: Probably stupid make question (cmd a=b) Thanks for the good ideas. The Makefile is generated by CMake, and

RE: Probably stupid make question (cmd a=b)

2008-08-30 Thread Phil Smith
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jay Sent: Saturday, August 30, 2008 10:48 AM To: cygwin@cygwin.com; Phil Smith; [EMAIL PROTECTED] Subject: RE: Probably stupid make question (cmd a=b) continuing somewhat off topic: > Probably stupid make question > 14

RE: Probably stupid make question (cmd a=b)

2008-08-30 Thread Jay
continuing somewhat off topic: > Probably stupid make question > 144097 by: Phil > 144106 by: Stephan > But really, just about anything is better than cmd. Have you tried quotes? D:\>type 2.cmd @echo 1 is %1 @echo 2 is %2

RE: Probably stupid make question

2008-08-30 Thread Stephan Mueller
2:36 PM To: cygwin@cygwin.com Subject: RE: Probably stupid make question Well, this is just ducky. I'm posting this so it goes in the archives and maybe saves someone else a LOT of heartache. Batch files treat incoming, unquoted equals signs as spaces! For the cross-compiling I

RE: Probably stupid make question

2008-08-29 Thread Phil Smith
k and kill whoever implemented THAT (I know, get in line...)! ...phsiii -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Faylor Sent: Thursday, August 28, 2008 4:33 PM To: cygwin@cygwin.com Subject: Re: Probably stupid make question On Thu, Aug 28,

RE: Probably stupid make question

2008-08-28 Thread Phil Smith
sday, August 28, 2008 4:14 PM To: cygwin@cygwin.com Subject: Re: Probably stupid make question Phil Smith wrote: > We're perverting CMake and Cygwin make to use a cross-compiler for z/OS (IBM > mainframe). We've beaten it mostly into submission, but are hitting an issue > with

Re: Probably stupid make question

2008-08-28 Thread Christopher Faylor
On Thu, Aug 28, 2008 at 01:13:47PM -0700, Brian Dessent wrote: >Phil Smith wrote: >>We're perverting CMake and Cygwin make to use a cross-compiler for z/OS >>(IBM mainframe). We've beaten it mostly into submission, but are >>hitting an issue with definitions being passed. Cygwin make seems to >>b

Re: Probably stupid make question

2008-08-28 Thread Brian Dessent
Phil Smith wrote: > We're perverting CMake and Cygwin make to use a cross-compiler for z/OS (IBM > mainframe). We've beaten it mostly into submission, but are hitting an issue > with definitions being passed. Cygwin make seems to be passing them in the > format: > -Dvarname value > rat