[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] QuickStart tutorial
From: |
Ángel González |
Subject: |
Re: [Bug-wget] QuickStart tutorial |
Date: |
Wed, 13 Oct 2010 23:56:54 +0200 |
User-agent: |
Thunderbird |
Rahul Prasad wrote:
> Hello,
>
> I am a student, I want to contribute to wget,
> I have read the nicely written
> OptionHowTo<http://wget.addictivecode.org/OptionsHowto>but still need
> an example to demonstrate how everything is put together.
>
> This is what I want to do (Test case).
> I want to add an option *-rahul* which will enqueue a hardcoded url for
> downloading say http://rahulprasad.com/app/scratchpad/v0ride/text.txt along
> with supplied url.
> Also
> I want to add another option *-override* which will just download the hard
> coded url and discard supplied url.
>
> I have already added "rahul" and "override" in *main.c* as
>
>
> { "rahul", '', OPT_VALUE, "rahul", -1 },
> { "override", '', OPT_VALUE, "override", -1 },
>
> Added following line in *options.h*
> char *rahul;
> char *override;
> under *struct options*
>
> Added following lines in *init.c*
> { "rahul", &opt.rahul, cmd_string },
> { "override", &opt.override, cmd_string },
> under *commands[] *
>
> but I am facing difficulty on what to do next.
> Please help, so that I can start development
>
> I want to add batch download support to wget, but need to know how things
> work.
> Also please tell me how do we debug big projects like wget?
> and what IDE do you people use ?
>
> Regards,
> Rahul Prasad
> ---------------------------------------------------------
> Web: www.rahulprasad.com
Why do you want to do all of this?
You can add the url instead of using a patched wget with it hardcoded.
If so you want, you could make a small script which adds the url unless
-override is provided.
- [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/13
- Re: [Bug-wget] QuickStart tutorial,
Ángel González <=
- Re: [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/13
- RE: [Bug-wget] QuickStart tutorial, Tony Lewis, 2010/10/13
- Re: [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/13
- RE: [Bug-wget] QuickStart tutorial, Tony Lewis, 2010/10/14
- Re: [Bug-wget] QuickStart tutorial, Ángel González, 2010/10/14
- Re: [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/14
- Re: [Bug-wget] QuickStart tutorial, Giuseppe Scrivano, 2010/10/15
- Re: [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/15
- Re: [Bug-wget] QuickStart tutorial, Giuseppe Scrivano, 2010/10/15
- Message not available
- Re: [Bug-wget] QuickStart tutorial, Giuseppe Scrivano, 2010/10/16