[PATCH] dim: Fix maintainer-tools setup

Dave Airlie airlied at gmail.com
Wed Aug 5 20:49:39 UTC 2020


On Thu, 6 Aug. 2020, 06:19 Jani Nikula, <jani.nikula at linux.intel.com> wrote:

> On Wed, 05 Aug 2020, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> > Setup instructions don't match the code anymore, ever since the split
> > to a separate repo we don't set it up automatically anymore. Readd
> > that - the right link and all was already there.
>
> I think at some point we decided the recommended way to install dim was
> to clone maintainer-tools, i.e. having a random dim script somewhere was
> not a recommended starting point.
>

The current docs suggest we never finished the point though, it grabs a dim
from gitlab raw.

Dave.

>
> BR,
> Jani.
>
>
>
> >
> > Reported-by: Dave Airlie <airlied at gmail.com>
> > Cc: Dave Airlie <airlied at gmail.com>
> > Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
> > ---
> >  dim | 8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> >
> > diff --git a/dim b/dim
> > index 1e61fe2f9ed9..3937f440219f 100755
> > --- a/dim
> > +++ b/dim
> > @@ -2274,8 +2274,12 @@ function dim_setup
> >       fi
> >
> >       if [[ ! -d "$(git_dir maintainer-tools)" ]]; then
> > -             echoerr "No maintainer-tools git checkout found in
> 'maintainer-tools'."
> > -             echoerr "dim update will not work. Please fix."
> > +             if ask_user "No maintainer-tools git checkout found in
> 'maintainer-tools'. Clone upstream?"; then
> > +                     git clone "$maintainer_tools_https"
> "mantainer-tools"
> > +             else
> > +                     echoerr "No maintainer-tools git checkout found in
> 'maintainer-tools'."
> > +                     echoerr "dim update will not work. Please fix."
> > +             fi
> >       fi
> >
> >       setup_aux_checkout rerere-cache $drm_tip_ssh drm-rerere
>
> --
> Jani Nikula, Intel Open Source Graphics Center
> _______________________________________________
> dim-tools mailing list
> dim-tools at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dim-tools
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dim-tools/attachments/20200806/3baac152/attachment.htm>


More information about the dim-tools mailing list