Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(769)

Issue 10024045: Add support for launching windows ninja from cygwin. (Closed)

Created:
8 years, 8 months ago by scottmg
Modified:
8 years, 8 months ago
Reviewers:
M-A Ruel
CC:
Scott Byer, chromium-reviews, Dirk Pranke, M-A Ruel
Visibility:
Public.

Description

Add support for launching windows ninja from cygwin. Shell through to the .bat to make sure the environment is correctly set up. Not sure if there's a better uname to check? Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132252

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M ninja View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scottmg
8 years, 8 months ago (2012-04-13 19:50:56 UTC) #1
M-A Ruel
lgtm with comments http://chromiumcodereview.appspot.com/10024045/diff/1/ninja File ninja (right): http://chromiumcodereview.appspot.com/10024045/diff/1/ninja#newcode1 ninja:1: #!/bin/bash copyright header http://chromiumcodereview.appspot.com/10024045/diff/1/ninja#newcode9 ninja:9: elif ...
8 years, 8 months ago (2012-04-13 20:09:19 UTC) #2
scottmg
Thanks. Scott, let me know if you still have cygwin trouble. http://chromiumcodereview.appspot.com/10024045/diff/1/ninja File ninja (right): ...
8 years, 8 months ago (2012-04-13 20:17:05 UTC) #3
Scott Byer
Working, thanks. (As for output, I force TERM to ansi and let Emacs fix up ...
8 years, 8 months ago (2012-04-13 20:23:55 UTC) #4
scottmg
How do you force to ansi? I don't use cygwin or Emacs, so perhaps it'd ...
8 years, 8 months ago (2012-04-13 20:25:36 UTC) #5
scottmg
er, "more effective" On Fri, Apr 13, 2012 at 1:25 PM, Scott Graham <scottmg@chromium.org> wrote: ...
8 years, 8 months ago (2012-04-13 20:26:12 UTC) #6
Scott Byer
8 years, 8 months ago (2012-04-13 20:39:18 UTC) #7
In my .bashrc, I've got

[ -n "$INSIDE_EMACS" ] && export TERM=ansi

Yes, it needs to be fixed in ninja proper - I'll take care of it.

On Fri, Apr 13, 2012 at 1:26 PM, Scott Graham <scottmg@chromium.org> wrote:

> er, "more effective"
>
> On Fri, Apr 13, 2012 at 1:25 PM, Scott Graham <scottmg@chromium.org>
> wrote:
> > How do you force to ansi? I don't use cygwin or Emacs, so perhaps it'd
> > be more for you to submit a patch if there's something to be fixed in
> > ninja proper.
> >
> > On Fri, Apr 13, 2012 at 1:23 PM, Scott Byer <scottbyer@chromium.org>
> wrote:
> >> Working, thanks.
> >>
> >> (As for output, I force TERM to ansi and let Emacs fix up the output on
> >> other platforms - I can pull ninja and submit a patch myself if you
> don't
> >> want to bother).
> >>
> >>
> >> On Fri, Apr 13, 2012 at 1:17 PM, <scottmg@chromium.org> wrote:
> >>>
> >>> Thanks. Scott, let me know if you still have cygwin trouble.
> >>>
> >>>
> >>>
> >>> http://chromiumcodereview.appspot.com/10024045/diff/1/ninja
> >>> File ninja (right):
> >>>
> >>> http://chromiumcodereview.appspot.com/10024045/diff/1/ninja#newcode1
> >>> ninja:1: #!/bin/bash
> >>> On 2012/04/13 20:09:19, Marc-Antoine Ruel wrote:
> >>>>
> >>>> copyright header
> >>>
> >>>
> >>> Done.
> >>>
> >>>
> >>> http://chromiumcodereview.appspot.com/10024045/diff/1/ninja#newcode9
> >>> ninja:9: elif [ "${OS}" = "CYGWIN_NT-6.1-WOW64" ]; then
> >>> On 2012/04/13 20:09:19, Marc-Antoine Ruel wrote:
> >>>>
> >>>> Strictly speaking, WOW64 is not guaranteed but in practice, it's going
> >>>
> >>> to be
> >>>>
> >>>> there. Can you do a proper "startswith" with [?
> >>>
> >>>
> >>> Done.
> >>>
> >>>
> >>> http://chromiumcodereview.appspot.com/10024045/diff/1/ninja#newcode10
> >>> ninja:10: exec cmd /c `cygpath -t windows $0`.bat "$@"
> >>> On 2012/04/13 20:09:19, Marc-Antoine Ruel wrote:
> >>>>
> >>>> cmd.exe
> >>>
> >>>
> >>> Done.
> >>>
> >>> http://chromiumcodereview.appspot.com/10024045/
> >>
> >>
>

Powered by Google App Engine
This is Rietveld 408576698