Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Help calling perl from gnu make on windows

Reply
Thread Tools

Help calling perl from gnu make on windows

 
 
Random Task
Guest
Posts: n/a
 
      03-29-2006
Hi ...

I think this will take someone here 5 minutes to provide me guidance.

I am calling perl from gnu make on windows and I am having a problem
with "arguments with spaces".

My build rule looks like this:

CommonComponentImplementation1/CommonComponentImplementation1_Build :
echo "hey"
$(CE_PERL) C:/Program Files/jim.pl

My error message looks like this:

"hey"
"C:\Program Files\Zeligsoft\Component Enabler\\perl\bin\perl.exe"
C:/Program\ Files/jim.pl
Can't open perl script "C:/Program\": No such file or directory
make: ***
[CommonComponentImplementation1/CommonComponentImplementation1_Build]
Error 0x2
 
Reply With Quote
 
 
 
 
Dr.Ruud
Guest
Posts: n/a
 
      03-29-2006
Random Task schreef:

> I am calling perl from gnu make on windows and I am having a problem
> with "arguments with spaces".


Did you try to put "" around them?

--
Affijn, Ruud

"Gewoon is een tijger."
echo 014C8A26C5DB87DBE85A93DBF |perl -pe 'tr/0-9A-F/JunkshoP cartel,/'
 
Reply With Quote
 
 
 
 
Random Task
Guest
Posts: n/a
 
      03-29-2006
Unfortunately yes ...

I have tried

<"some exec filename with space"> -help

which executes fine ... but as soon as the 2nd argument has spaces i.e.

<"command"> <"arg1_with_spaces">

Everything i see on google says don't uses spaces ...

Any other suggestions?

Jim



Dr.Ruud wrote:
> Random Task schreef:
>
>> I am calling perl from gnu make on windows and I am having a problem
>> with "arguments with spaces".

>
> Did you try to put "" around them?
>

 
Reply With Quote
 
Dr.Ruud
Guest
Posts: n/a
 
      03-29-2006
Random Task schreef:
> Dr.Ruud:
>> Random Task:


Please don't top-post.

>>> I am calling perl from gnu make on windows and I am having a problem
>>> with "arguments with spaces".

>>
>> Did you try to put "" around them?

>
> Unfortunately yes ... I have tried
> <"some exec filename with space"> -help
> which executes fine ... but as soon as the 2nd argument has spaces
> i.e.
> <"command"> <"arg1_with_spaces">
> Everything i see on google says don't uses spaces ...
> Any other suggestions?


I meant in your build rule. The error message is about "C:/Program\",
and I see that part only in your build rule.

You can also use the 8.3 name of "C:/Program Files", often
"C:/PROGRA~1", see

dir c:\p* /ad/x

from a DOS-prompt.

--
Affijn, Ruud

"Gewoon is een tijger."
echo 014C8A26C5DB87DBE85A93DBF |perl -pe 'tr/0-9A-F/JunkshoP cartel,/'

 
Reply With Quote
 
A. Sinan Unur
Guest
Posts: n/a
 
      03-29-2006
Random Task <> wrote in news::

> Unfortunately yes ...


Yes what? Oh, you are top-posting, please don't do that.

> I have tried
>
> <"some exec filename with space"> -help
>
> which executes fine ... but as soon as the 2nd argument has spaces
> i.e.
>
> <"command"> <"arg1_with_spaces">
>


D:\Home\asu1\UseNet\clpmisc\dat> cat Makefile
main:
perl "C:/Program Files/test.pl"


D:\Home\asu1\UseNet\clpmisc\dat> make
perl "C:/Program Files/test.pl"
Can't open perl script "C:/Program Files/test.pl": No such file or
directory
make: *** [main] Error 2

D:\Home\asu1\UseNet\clpmisc\dat> make -v
GNU Make 3.80

True, the file does not exist but this demonstrates that the argument is
passed correctly to perl.

Sinan
--
A. Sinan Unur <>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc...uidelines.html

 
Reply With Quote
 
Random Task
Guest
Posts: n/a
 
      04-04-2006
No chance you know how to get the 8.3 name for a path inside perl do you ?

r.Ruud wrote:
> Random Task schreef:
>> Dr.Ruud:
>>> Random Task:

>
> Please don't top-post.
>
>>>> I am calling perl from gnu make on windows and I am having a problem
>>>> with "arguments with spaces".
>>> Did you try to put "" around them?

>> Unfortunately yes ... I have tried
>> <"some exec filename with space"> -help
>> which executes fine ... but as soon as the 2nd argument has spaces
>> i.e.
>> <"command"> <"arg1_with_spaces">
>> Everything i see on google says don't uses spaces ...
>> Any other suggestions?

>
> I meant in your build rule. The error message is about "C:/Program\",
> and I see that part only in your build rule.
>
> You can also use the 8.3 name of "C:/Program Files", often
> "C:/PROGRA~1", see
>
> dir c:\p* /ad/x
>
> from a DOS-prompt.
>

 
Reply With Quote
 
thundergnat
Guest
Posts: n/a
 
      04-04-2006
Random Task wrote:
> No chance you know how to get the 8.3 name for a path inside perl do you ?
>



my $dos_path = Win32::GetShortPathName($path);
 
Reply With Quote
 
Tad McClellan
Guest
Posts: n/a
 
      04-05-2006
Random Task <> wrote:
> No chance you know how to get the 8.3 name for a path inside perl do you ?
>
> r.Ruud wrote:
>> Random Task schreef:
>>> Dr.Ruud:
>>>> Random Task:

>>
>> Please don't top-post.



You were asked to stop.

You did not stop.

Many will now stop reading all of your future articles.

Please don't top-post!


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling GNU/make from a Python Script Efrat Regev Python 5 10-30-2006 06:54 PM
Re: Any non-GNU compilers? sick of GNU copylefts Markus Elfring C++ 2 02-23-2005 10:24 PM
R e: 1 day gnu, whole life gnu? Peter Java 17 01-13-2005 03:32 PM
1 day gnu, whole life gnu? Peter Java 3 01-10-2005 02:26 PM
GNU make & make.pl are dead: long live Perl makepp Daniel Pfeiffer Perl Misc 1 09-09-2003 07:31 AM



Advertisments