[PATCH 0/4] dim setup improvements

Lucas De Marchi lucas.demarchi at intel.com
Mon Mar 4 23:07:38 UTC 2019


On Mon, Mar 04, 2019 at 11:12:21PM +0200, Jani Nikula wrote:
>On Mon, 04 Mar 2019, Lucas De Marchi <lucas.demarchi at intel.com> wrote:
>> We had some small problems when calling dim setup. This should
>> hopefully fix them all, making it easier to setup a new environment
>> like I was doing.
>>
>> Now setting up the environment from scratch has a bigger chance of
>> working. Maybe we can update the docs with something like:
>>
>> curl -O \
>> 	https://gitlab.freedesktop.org/drm/maintainer-tools/raw/master/dim > ~/bin/dim
>> chmod +x ~/bin/dim
>> DIM_PREFIX=/path/to/setup/the/project dim setup
>
>
>I think the documentation should be to start by cloning the
>maintainer-tools repo, and continue from there.

yeah, as long as that's done inside DIM_PREFIX, it should be good.

Documentation idea:

export DIM_PREFIX=/path/to/setup/the/project
cd $DIM_PREFIX
git clone https://gitlab.freedesktop.org/drm/maintainer-tools.git
./maintainer-tools/dim setup

After that mention the .dimrc in which some customizations can be made,
including the DIM_PREFIX above, as well as keeping the maintainer-tools
on PATH (although lately I'm just calling ../maintainer-tools/dim)


I also miss a --non-interactive or the like so dim doesn't keep asking
me questions about the name of the remotes.

Lucas De Marchi

>
>BR,
>Jani.
>
>>
>> Another thing we may want to improve:  add a --no-interactive or change
>> the default behavior so dim just do the right thing without asking.
>> Thoughts?
>>
>> Lucas De Marchi (4):
>>   dim: clone in the right dir
>>   dim: do all setup relative to $DIM_PREFIX
>>   dim: update branches after setup
>>   dim: automatically clone maintainer-tools repo
>>
>>  dim | 32 +++++++++++++++++++-------------
>>  1 file changed, 19 insertions(+), 13 deletions(-)
>
>-- 
>Jani Nikula, Intel Open Source Graphics Center


More information about the dim-tools mailing list