January 16, 2012
On 2012-01-16 06:20, Nick Sabalausky wrote:
> "Andrei Alexandrescu"<SeeWebsiteForEmail@erdani.org>  wrote in message
> news:jevr6q$8vp$1@digitalmars.com...
>> I just added a handy script, tools/update.sh.
>>
>> https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605
>>
>> It's useful for people who work on dmd and want to either download anew or
>> freshen their repositories.
>>
>> Comments and ideas are welcome.
>>
>>
>
> Soo...you made a tool to do what DVM already does? ;)

And only works on Posix.

-- 
/Jacob Carlborg
January 16, 2012
On 1/16/12 1:18 AM, Jacob Carlborg wrote:
> On 2012-01-16 06:20, Nick Sabalausky wrote:
>> "Andrei Alexandrescu"<SeeWebsiteForEmail@erdani.org> wrote in message
>> news:jevr6q$8vp$1@digitalmars.com...
>>> I just added a handy script, tools/update.sh.
>>>
>>> https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605
>>>
>>>
>>> It's useful for people who work on dmd and want to either download
>>> anew or
>>> freshen their repositories.
>>>
>>> Comments and ideas are welcome.
>>>
>>>
>>
>> Soo...you made a tool to do what DVM already does? ;)
>
> And only works on Posix.

It's a simple 200 lines script that does something that someone working on dmd etc. needs. I just looked over DVM (on https://bitbucket.org/doob/dvm/wiki/Home). It's a large program, has a large list of dependencies, is largely undocumented (I'm unclear even to what extent it does what I need), it seems to do a ton of stuff I don't need, and there's no way it could be justified for inclusion in tools/. It's great that DVM exists for people who need it, but I don't see a competition between it and update.sh.

Andrei


January 16, 2012
"Andrei Alexandrescu" <SeeWebsiteForEmail@erdani.org> wrote in message news:jf0l94$1i6a$1@digitalmars.com...
> On 1/16/12 1:18 AM, Jacob Carlborg wrote:
>> On 2012-01-16 06:20, Nick Sabalausky wrote:
>>>
>>> Soo...you made a tool to do what DVM already does? ;)
>>
>> And only works on Posix.
>
> It's a simple 200 lines script that does something that someone working on dmd etc. needs.

Fair enough.

And to be honest, DVM doesn't actually do the git checkout just yet (that's planned). But it'll compile it once you have checked out from git (Although I think the recent move of the DMD download page from digitalmars.com to d-p-l.org broke part of it - we admittedly need to fix that.)

> I just looked over DVM (on https://bitbucket.org/doob/dvm/wiki/Home). It's a large program, has a large list of dependencies,

It doesn't have any runtime dependencies.

As far as compile-time dependencies, that's only relevent if you need to compile it, which should be very rare since binaries are already provided for Win, OSX, Lin32 and Lin64.

> is largely undocumented (I'm unclear even to what extent it does what I need),

Fair enough. That's something we could use improve.

> it seems to do a ton of stuff I don't need,

Uhh...so?

> and there's no way it could be justified for inclusion in tools/.

Are there any other reasons for this besides what you've outlined? (If so, that would help us.)

> It's great that DVM exists for people who need it, but I don't see a competition between it and update.sh.
>

I don't mean to say that your tool is bad or that you shouldn't have made it, but the issues you addressed with DVM can be fixed, and really, I've been detecting a bit of NIH coming from your general direction. I've noticed that any time you want something, you go off and do it yourself, and to hell with any part of the community that's been working on anything similar. If you see a problem with the existing options, at the very least you could say something instead of ignoring it and going cowboy-coder, running off undermining anything that doesn't have the official "Championed by Andrei" stamp.


January 16, 2012
On 2012-01-16 08:57, Andrei Alexandrescu wrote:
> On 1/16/12 1:18 AM, Jacob Carlborg wrote:
>> On 2012-01-16 06:20, Nick Sabalausky wrote:
>>> "Andrei Alexandrescu"<SeeWebsiteForEmail@erdani.org> wrote in message
>>> news:jevr6q$8vp$1@digitalmars.com...
>>>> I just added a handy script, tools/update.sh.
>>>>
>>>> https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605
>>>>
>>>>
>>>>
>>>> It's useful for people who work on dmd and want to either download
>>>> anew or
>>>> freshen their repositories.
>>>>
>>>> Comments and ideas are welcome.
>>>>
>>>>
>>>
>>> Soo...you made a tool to do what DVM already does? ;)
>>
>> And only works on Posix.
>
> It's a simple 200 lines script that does something that someone working
> on dmd etc. needs. I just looked over DVM (on
> https://bitbucket.org/doob/dvm/wiki/Home). It's a large program, has a
> large list of dependencies, is largely undocumented (I'm unclear even to
> what extent it does what I need), it seems to do a ton of stuff I don't
> need, and there's no way it could be justified for inclusion in tools/.
> It's great that DVM exists for people who need it, but I don't see a
> competition between it and update.sh.
>
> Andrei
>
>

A large list of dependencies?? The only runtime dependency is zlib.

-- 
/Jacob Carlborg
January 16, 2012
On 2012-01-16 10:02, Jacob Carlborg wrote:
> On 2012-01-16 08:57, Andrei Alexandrescu wrote:
>> On 1/16/12 1:18 AM, Jacob Carlborg wrote:
>>> On 2012-01-16 06:20, Nick Sabalausky wrote:
>>>> "Andrei Alexandrescu"<SeeWebsiteForEmail@erdani.org> wrote in message
>>>> news:jevr6q$8vp$1@digitalmars.com...
>>>>> I just added a handy script, tools/update.sh.
>>>>>
>>>>> https://github.com/D-Programming-Language/tools/commit/cc4e3c07c2ebb19dbb90c2d29c828f5fb714e605
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> It's useful for people who work on dmd and want to either download
>>>>> anew or
>>>>> freshen their repositories.
>>>>>
>>>>> Comments and ideas are welcome.
>>>>>
>>>>>
>>>>
>>>> Soo...you made a tool to do what DVM already does? ;)
>>>
>>> And only works on Posix.
>>
>> It's a simple 200 lines script that does something that someone working
>> on dmd etc. needs. I just looked over DVM (on
>> https://bitbucket.org/doob/dvm/wiki/Home). It's a large program, has a
>> large list of dependencies, is largely undocumented (I'm unclear even to
>> what extent it does what I need), it seems to do a ton of stuff I don't
>> need, and there's no way it could be justified for inclusion in tools/.
>> It's great that DVM exists for people who need it, but I don't see a
>> competition between it and update.sh.
>>
>> Andrei
>>
>>
>
> A large list of dependencies?? The only runtime dependency is zlib.
>

And this is on Posix (which basally always have it installed by default). On Windows it's statically linked.

-- 
/Jacob Carlborg
January 16, 2012
On 2012-01-16 09:54, Nick Sabalausky wrote:
> "Andrei Alexandrescu"<SeeWebsiteForEmail@erdani.org>  wrote in message
> news:jf0l94$1i6a$1@digitalmars.com...
>> On 1/16/12 1:18 AM, Jacob Carlborg wrote:
>>> On 2012-01-16 06:20, Nick Sabalausky wrote:
>>>>
>>>> Soo...you made a tool to do what DVM already does? ;)
>>>
>>> And only works on Posix.
>>
>> It's a simple 200 lines script that does something that someone working on
>> dmd etc. needs.
>
> Fair enough.
>
> And to be honest, DVM doesn't actually do the git checkout just yet (that's
> planned). But it'll compile it once you have checked out from git (Although
> I think the recent move of the DMD download page from digitalmars.com to
> d-p-l.org broke part of it - we admittedly need to fix that.)

Is this still a problem, have you tried to re-download dvm?

https://bitbucket.org/doob/dvm/changeset/40f17ea46d0f

-- 
/Jacob Carlborg
January 16, 2012
"Jacob Carlborg" <doob@me.com> wrote in message news:jf0pi9$1u50$3@digitalmars.com...
>
> Is this still a problem, have you tried to re-download dvm?
>
> https://bitbucket.org/doob/dvm/changeset/40f17ea46d0f
>

http://www.semitwist.com/download/img/works-for-me.jpeg



January 16, 2012
"Nick Sabalausky" <a@a.a> wrote in message news:jf0ois$1t01$1@digitalmars.com...
> "Andrei Alexandrescu" <SeeWebsiteForEmail@erdani.org> wrote in message news:jf0l94$1i6a$1@digitalmars.com...
>> On 1/16/12 1:18 AM, Jacob Carlborg wrote:
>>> On 2012-01-16 06:20, Nick Sabalausky wrote:
>>>>
>>>> Soo...you made a tool to do what DVM already does? ;)
>>>
>>> And only works on Posix.
>>
>> It's a simple 200 lines script that does something that someone working on dmd etc. needs.
>
> Fair enough.
>
> And to be honest, DVM doesn't actually do the git checkout just yet (that's planned). But it'll compile it once you have checked out from git (Although I think the recent move of the DMD download page from digitalmars.com to d-p-l.org broke part of it - we admittedly need to fix that.)
>
>> I just looked over DVM (on https://bitbucket.org/doob/dvm/wiki/Home). It's a large program, has a large list of dependencies,
>
> It doesn't have any runtime dependencies.
>
> As far as compile-time dependencies, that's only relevent if you need to compile it, which should be very rare since binaries are already provided for Win, OSX, Lin32 and Lin64.
>
>> is largely undocumented (I'm unclear even to what extent it does what I need),
>
> Fair enough. That's something we could use improve.
>
>> it seems to do a ton of stuff I don't need,
>
> Uhh...so?
>
>> and there's no way it could be justified for inclusion in tools/.
>
> Are there any other reasons for this besides what you've outlined? (If so, that would help us.)
>
>> It's great that DVM exists for people who need it, but I don't see a competition between it and update.sh.
>>
>
> I don't mean to say that your tool is bad or that you shouldn't have made it, but the issues you addressed with DVM can be fixed, and really, I've been detecting a bit of NIH coming from your general direction. I've noticed that any time you want something, you go off and do it yourself, and to hell with any part of the community that's been working on anything similar. If you see a problem with the existing options, at the very least you could say something instead of ignoring it and going cowboy-coder, running off undermining anything that doesn't have the official "Championed by Andrei" stamp.
>

I apologize for the tone, I overreacted. I'm sure you weren't trying to undermine anyone or anything, just posting a potentially helpful tool, like we all try to do. I do think it would be nice for you to give feedback if there's any D tools/libs that are similar to what you want but don't quite fit the bill for one reason or another. But I understand if it wasn't clear that DVM was trying to move in that direction.


January 16, 2012
On Monday, 16 January 2012 at 04:16:12 UTC, Andrei Alexandrescu wrote:
> On 1/15/12 9:15 PM, Jesse Phillips wrote:
>> I might suggest using:
>>
>> git clone -o upstream git://github.com/D-Programming-Language/tools.git
>>
>> for cloning a new repository. This would allow developers to add their
>> fork of the repository as origin (Default remote name). So now the
>> update script would have to pull from upstream instead of origin to do
>> the update... This will be a common setup for not D-Programming-Language
>> organization members.
>
> Updated, please advise. Thanks!
>
> https://github.com/D-Programming-Language/tools/commit/c5c61a67b7f043f8127d3bf92c98d19a30d6b06d
>
> Andrei

With that change it is likely you'll want to change update to use upstream instead of origin. Though it is probably dependent on if the user has upstream which I don't know of a good way to check. Or you could just require those to have an upstream.

https://github.com/D-Programming-Language/tools/blob/c5c61a67b7f043f8127d3bf92c98d19a30d6b06d/update.sh#L136

You can add the remote to your repository with

git remote add upstream git@github.com:D-Programming-Language/dmd.git
January 16, 2012
On 1/16/12 3:02 AM, Jacob Carlborg wrote:
> A large list of dependencies?? The only runtime dependency is zlib.

That's in the case we want to include it in tools/.

Andrei