From: "Andrew Fish" <afish@apple.com>
To: "Jiang, Guomin" <guomin.jiang@intel.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"lersek@redhat.com" <lersek@redhat.com>
Subject: Re: [edk2-devel] File in the build question. I'm working on a smart git grep
Date: Mon, 20 Jul 2020 18:53:37 -0700 [thread overview]
Message-ID: <FCB01243-DAA0-4911-8BB6-8E9960CDF526@apple.com> (raw)
In-Reply-To: <DM6PR11MB29555933E8B99BF43AA2209B9D780@DM6PR11MB2955.namprd11.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 2158 bytes --]
> On Jul 20, 2020, at 6:18 PM, Jiang, Guomin <guomin.jiang@intel.com> wrote:
>
> 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.
I’m thinking I could file a bugzilla to add BaseTools/Scripts/ to the path for edksetup.sh/edksetup.bat and then I can just contribute my Python git extension to BaseTools/Scripts
As Laszlo pointed out there is generic value having BaseTools/Scripts/ in the path so I filed: https://bugzilla.tianocore.org/show_bug.cgi?id=2859
Thanks,
Andrew Fish
>
>> -----Original Message-----
>> From: devel@edk2.groups.io <mailto:devel@edk2.groups.io> <devel@edk2.groups.io <mailto:devel@edk2.groups.io>> On Behalf Of Laszlo
>> Ersek
>> Sent: Tuesday, July 21, 2020 3:55 AM
>> To: Andrew Fish <afish@apple.com <mailto:afish@apple.com>>; edk2-devel-groups-io
>> <devel@edk2.groups.io <mailto: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
>>
>>
>>
[-- Attachment #2: Type: text/html, Size: 8126 bytes --]
prev parent reply other threads:[~2020-07-21 1:53 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
2020-07-21 1:53 ` Andrew Fish [this message]
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=FCB01243-DAA0-4911-8BB6-8E9960CDF526@apple.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