all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christoph <cschol2112@googlemail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: make dist target for Windows
Date: Mon, 05 Apr 2010 20:12:53 -0600	[thread overview]
Message-ID: <4BBA98A5.4060904@gmail.com> (raw)
In-Reply-To: <83wrwnzoa8.fsf@gnu.org>

On 4/4/2010 1:10 AM, Eli Zaretskii wrote:
> You set distFilesOk here, but you never unset it before exiting the
> script.
>    
Missed one. Fixed.

> Hmm... did you try running "make dist" with some sh.exe on your PATH?
> I think it's not a good idea to rely on a Unixy shell to know how to
> run Windows batch files.  I would suggest to invoke through the
> Windows shell explicitly:
>
> 	$(COMSPEC) /c $(ARGQUOTE)zipdist.bat $(DQUOTE)$(INSTALL_DIR)$(DQUOTE) $(VERSION)$(ARGQUOTE)
>
> The $(*QUOTE) stuff is needed in case $(INSTALL_DIR) includes spaces,
> but please test that this works, both with cmd.exe and sh.exe as the
> shell, because I didn't.
>    
I tried this but it doesnt work, neither with a shell (cygwin) or cmd.exe:

$(ComSpec) /c $(ARGQUOTE)zipdist.bat $(DQUOTE)$(INSTALL_DIR)$(DQUOTE) 
$(VERSION)$(ARGQUOTE)

(Note the camelcase-ing of ComSpec which is necessary for Windows NT to 
find cmd.exe. The makefile has a couple of paragraphs on this topic in 
the NOTES section at the top.)

However, I get the following error in both scenarios:

Using Cygwin, mingw32:
C:\Windows\system32\cmd.exe /c 'zipdist.bat 
"D:/devel/emacs/emacs-bzr/makedistw32/nt/.." 24.0.50'
devel was unexpected at this time.
mingw32-make: *** [dist] Error 255

Using Cmd.exe, GNU coreutils. mingw32:
C:\Windows\system32\cmd.exe /c "zipdist.bat 
\"D:/devel/emacs/emacs-bzr/makedistw32/nt/..\" 24.0.50"
devel was unexpected at this time.
mingw32-make: *** [dist] Error 255

Remove $(DQUOTE) and it works fine in both cases, but this will cause 
trouble if $(INSTALL_PATH) contains spaces.

Here is my preliminary final version:

     $(COMSPEC)$(ComSpec) /c $(ARGQUOTE)zipdist.bat $(INSTALL_DIR) 
$(VERSION)$(ARGQUOTE)

This will work fine with the cygwin shell and Windows PreNT/NT cmd.exe 
as long as $(INSTALL_DIR) does not contain any spaces.

However, is the rest of the makefile capable of handling this case 
correctly? I see $(INSTALL_DIR) quoted in some places, some don't have 
quotes. The NOTES section of the makefile says that quoting helps making 
the forward slashes work in cmd.exe. It does not mention the support of 
spaces in file names.

Any ideas?

Christoph





  reply	other threads:[~2010-04-06  2:12 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-31  3:03 make dist target for Windows Christoph
2010-03-31  8:30 ` Eli Zaretskii
2010-03-31 14:57   ` Stefan Monnier
2010-03-31 16:13     ` Eli Zaretskii
2010-03-31 17:55       ` Stefan Monnier
2010-03-31 23:12     ` Jason Rumney
2010-03-31 23:39       ` Sean Sieger
2010-03-31 23:43       ` Christoph
2010-04-01  5:00         ` Jason Rumney
2010-04-01  6:13           ` Jan Djärv
2010-04-01  6:52           ` Eli Zaretskii
2010-04-01  7:23             ` Jan Djärv
2010-04-01  7:44               ` Eli Zaretskii
2010-04-01  7:24             ` Eli Zaretskii
2010-04-01 13:21               ` Jason Rumney
2010-04-01 13:37                 ` Eli Zaretskii
2010-04-01 13:17             ` Jason Rumney
2010-04-01  1:48   ` Christoph
2010-04-01  7:34     ` Eli Zaretskii
2010-04-02  4:26       ` Christoph
2010-04-02  8:25         ` Eli Zaretskii
2010-04-03 17:31           ` Christoph
2010-04-04  7:10             ` Eli Zaretskii
2010-04-06  2:12               ` Christoph [this message]
2010-04-06 18:00                 ` Eli Zaretskii
2010-04-07  1:53                   ` Christoph
2010-04-08  0:05                     ` Christoph
2010-04-08 17:51                       ` Eli Zaretskii
2010-04-08 18:08                         ` Christoph
2010-07-03 17:08                         ` Christoph
  -- strict thread matches above, loose matches on Subject: below --
2010-03-31 10:49 grischka
2010-03-31 11:18 ` Eli Zaretskii
2010-04-02 11:12   ` grischka
2010-04-02 13:01     ` Eli Zaretskii
2010-04-06 13:17       ` grischka
2010-04-06 13:46         ` joakim
2010-04-08 20:45           ` grischka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BBA98A5.4060904@gmail.com \
    --to=cschol2112@googlemail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.