public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Guomin Jiang" <guomin.jiang@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"lersek@redhat.com" <lersek@redhat.com>,
	Andrew Fish <afish@apple.com>
Subject: Re: [edk2-devel] File in the build question. I'm working on a smart git grep
Date: Tue, 21 Jul 2020 01:18:23 +0000	[thread overview]
Message-ID: <DM6PR11MB29555933E8B99BF43AA2209B9D780@DM6PR11MB2955.namprd11.prod.outlook.com> (raw)
In-Reply-To: <725658cb-b4f1-0e8a-a5f8-117c4f23221d@redhat.com>

I would like that add BaseTols/Scripts/ to the PATH.

Usually, I use ```set PATH=%PATH%;%WORKSPACE%\BaseTools\Scripts``` to add new directory to the environment variable.

But I suggest that we should judge if the last character in PATH variable is ';' character and then add new directory.

Let me know what I can help you.

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Laszlo
> Ersek
> Sent: Tuesday, July 21, 2020 3:55 AM
> To: Andrew Fish <afish@apple.com>; edk2-devel-groups-io
> <devel@edk2.groups.io>
> Subject: Re: [edk2-devel] File in the build question. I'm working on a smart git
> grep
> 
> On 07/18/20 22:23, Andrew Fish wrote:
> > Wanted to see if people are OK with adding BaseTools/Scripts/ to the path
> when you run `. edksetuip.sh` or edksetup.bat?
> >
> > If we do that and I add BaseTools/Scripts/git-pgrep then it will show up as
> an extended git command.
> >
> > I was thinking over time we could add git-edk2* git commands to help
> automate the process or maintainer workflow.
> >
> > If people are OK with adding the path I can make a patch set to contribute
> git-pgrep, but I need some help with how to add the new path to
> edksetup.bat.
> 
> To be honest, I think edksetup.sh should add BaseTools/Scripts/ to the PATH
> environment variable anyway. I find it a bit awkward to run
> 
>   python BaseTools/Scripts/GetMaintainer.py -l ...
> 
> rather than just
> 
>   GetMaintainer.py -l ...
> 
> Thanks
> Laszlo
> 
> 
> 


  reply	other threads:[~2020-07-21  1:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-16  1:41 File in the build question. I'm working on a smart git grep Andrew Fish
2020-07-16 13:18 ` [edk2-devel] " Laszlo Ersek
2020-07-16 15:50   ` Andrew Fish
     [not found]   ` <1622466A6176DB37.5128@groups.io>
2020-07-18 20:23     ` Andrew Fish
2020-07-20 19:55       ` Laszlo Ersek
2020-07-21  1:18         ` Guomin Jiang [this message]
2020-07-21  1:53           ` Andrew Fish

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-list 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=DM6PR11MB29555933E8B99BF43AA2209B9D780@DM6PR11MB2955.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox