1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] --retr-symlinks was not previously documented properly. Based on my newfound

understanding of what its limitations are, added a TODO item.  Also made a minor
tweak in html.c to silence a warning.
This commit is contained in:
dan 2000-10-09 15:43:11 -07:00
parent 2358c437c5
commit cbf018d0c0
23 changed files with 126 additions and 68 deletions

View File

@ -1,3 +1,7 @@
2000-10-09 Dan Harkless <dan-wget@dilvish.speed.net>
* TODO: --retr-symlinks should cause wget to traverse links to dirs too.
2000-09-25 Dan Harkless <dan-wget@dilvish.speed.net> 2000-09-25 Dan Harkless <dan-wget@dilvish.speed.net>
* TODO: Make wget return nonzero in situations like bad HTTP * TODO: Make wget return nonzero in situations like bad HTTP

2
TODO
View File

@ -6,6 +6,8 @@ Wget. Patches to implement any of these items would be gladly accepted. The
items are not listed in any particular order. Not all of them represent items are not listed in any particular order. Not all of them represent
user-visible changes. user-visible changes.
* --retr-symlinks should cause wget to traverse links to directories too.
* Lots of noncompliant webservers issue HTTP redirects to relative URLs, and * Lots of noncompliant webservers issue HTTP redirects to relative URLs, and
browsers follow them, so wget should too. browsers follow them, so wget should too.

View File

@ -1,3 +1,7 @@
2000-10-09 Dan Harkless <dan-wget@dilvish.speed.net>
* wget.texi (FTP Options): --retr-symlinks wasn't documented properly.
2000-08-30 Dan Harkless <dan-wget@dilvish.speed.net> 2000-08-30 Dan Harkless <dan-wget@dilvish.speed.net>
* wget.texi (Recursive Retrieval Options): Documented new -p option. * wget.texi (Recursive Retrieval Options): Documented new -p option.

View File

@ -26,8 +26,8 @@ notice identical to this one.
 
Indirect: Indirect:
wget.info-1: 961 wget.info-1: 961
wget.info-2: 50095 wget.info-2: 50884
wget.info-3: 97019 wget.info-3: 97808
 
Tag Table: Tag Table:
(Indirect) (Indirect)
@ -42,47 +42,47 @@ Node: Download Options12812
Node: Directory Options20659 Node: Directory Options20659
Node: HTTP Options23137 Node: HTTP Options23137
Node: FTP Options27042 Node: FTP Options27042
Node: Recursive Retrieval Options28235 Node: Recursive Retrieval Options29024
Node: Recursive Accept/Reject Options32947 Node: Recursive Accept/Reject Options33736
Node: Recursive Retrieval36173 Node: Recursive Retrieval36962
Node: Following Links38471 Node: Following Links39260
Node: Relative Links39499 Node: Relative Links40288
Node: Host Checking40013 Node: Host Checking40802
Node: Domain Acceptance42038 Node: Domain Acceptance42827
Node: All Hosts43708 Node: All Hosts44497
Node: Types of Files44135 Node: Types of Files44924
Node: Directory-Based Limits46585 Node: Directory-Based Limits47374
Node: FTP Links49225 Node: FTP Links50014
Node: Time-Stamping50095 Node: Time-Stamping50884
Node: Time-Stamping Usage51732 Node: Time-Stamping Usage52521
Node: HTTP Time-Stamping Internals53301 Node: HTTP Time-Stamping Internals54090
Node: FTP Time-Stamping Internals54771 Node: FTP Time-Stamping Internals55560
Node: Startup File55979 Node: Startup File56768
Node: Wgetrc Location56852 Node: Wgetrc Location57641
Node: Wgetrc Syntax57667 Node: Wgetrc Syntax58456
Node: Wgetrc Commands58382 Node: Wgetrc Commands59171
Node: Sample Wgetrc65910 Node: Sample Wgetrc66699
Node: Examples70929 Node: Examples71718
Node: Simple Usage71536 Node: Simple Usage72325
Node: Advanced Usage73930 Node: Advanced Usage74719
Node: Guru Usage76681 Node: Guru Usage77470
Node: Various78343 Node: Various79132
Node: Proxies78867 Node: Proxies79656
Node: Distribution81632 Node: Distribution82421
Node: Mailing List81983 Node: Mailing List82772
Node: Reporting Bugs82682 Node: Reporting Bugs83471
Node: Portability84467 Node: Portability85256
Node: Signals85842 Node: Signals86631
Node: Appendices86496 Node: Appendices87285
Node: Robots86911 Node: Robots87700
Node: Introduction to RES88058 Node: Introduction to RES88847
Node: RES Format89951 Node: RES Format90740
Node: User-Agent Field91055 Node: User-Agent Field91844
Node: Disallow Field91819 Node: Disallow Field92608
Node: Norobots Examples92430 Node: Norobots Examples93219
Node: Security Considerations93384 Node: Security Considerations94173
Node: Contributors94380 Node: Contributors95169
Node: Copying97019 Node: Copying97808
Node: Concept Index116182 Node: Concept Index116971
 
End Tag Table End Tag Table

View File

@ -681,8 +681,23 @@ FTP Options
=========== ===========
`--retr-symlinks' `--retr-symlinks'
Retrieve symbolic links on FTP sites as if they were plain files, Usually, when retrieving FTP directories recursively and a symbolic
i.e. don't just create links locally. link is encountered, the linked-to file is not downloaded.
Instead, a matching symbolic link is created on the local
filesystem. The pointed-to file will not be downloaded unless
this recursive retrieval would have encountered it separately and
downloaded it anyway.
When `--retr-symlinks' is specified, however, symbolic links are
traversed and the pointed-to files are retrieved. At this time,
this option does not cause wget to traverse symlinks to
directories and recurse through them, but in the future it should
be enhanced to do this.
Note that when retrieving a file (not a directory) because it was
specified on the commandline, rather than because it was recursed
to, this option has no effect. Symbolic links are always
traversed in this case.
`-g on/off' `-g on/off'
`--glob=on/off' `--glob=on/off'

View File

@ -479,8 +479,8 @@ Concept Index
* pause: Download Options. * pause: Download Options.
* portability: Portability. * portability: Portability.
* proxies: Proxies. * proxies: Proxies.
* proxy <1>: Download Options. * proxy <1>: HTTP Options.
* proxy: HTTP Options. * proxy: Download Options.
* proxy authentication: HTTP Options. * proxy authentication: HTTP Options.
* proxy filling: Recursive Retrieval Options. * proxy filling: Recursive Retrieval Options.
* proxy password: HTTP Options. * proxy password: HTTP Options.
@ -500,7 +500,6 @@ Concept Index
* retries: Download Options. * retries: Download Options.
* retries, waiting between: Download Options. * retries, waiting between: Download Options.
* retrieval tracing style: Download Options. * retrieval tracing style: Download Options.
* retrieve symbolic links: FTP Options.
* retrieving: Recursive Retrieval. * retrieving: Recursive Retrieval.
* robots: Robots. * robots: Robots.
* robots.txt: Robots. * robots.txt: Robots.
@ -516,6 +515,7 @@ Concept Index
* startup file: Startup File. * startup file: Startup File.
* suffixes, accept: Types of Files. * suffixes, accept: Types of Files.
* suffixes, reject: Types of Files. * suffixes, reject: Types of Files.
* symbolic links, retrieving: FTP Options.
* syntax of options: Option Syntax. * syntax of options: Option Syntax.
* syntax of wgetrc: Wgetrc Syntax. * syntax of wgetrc: Wgetrc Syntax.
* tag-based recursive pruning: Recursive Accept/Reject Options. * tag-based recursive pruning: Recursive Accept/Reject Options.

View File

@ -818,10 +818,24 @@ Wget as Mozilla.
@section FTP Options @section FTP Options
@table @samp @table @samp
@cindex retrieve symbolic links @cindex symbolic links, retrieving
@item --retr-symlinks @item --retr-symlinks
Retrieve symbolic links on @sc{ftp} sites as if they were plain files, Usually, when retrieving @sc{ftp} directories recursively and a symbolic
i.e. don't just create links locally. link is encountered, the linked-to file is not downloaded. Instead, a
matching symbolic link is created on the local filesystem. The
pointed-to file will not be downloaded unless this recursive retrieval
would have encountered it separately and downloaded it anyway.
When @samp{--retr-symlinks} is specified, however, symbolic links are
traversed and the pointed-to files are retrieved. At this time, this
option does not cause wget to traverse symlinks to directories and
recurse through them, but in the future it should be enhanced to do
this.
Note that when retrieving a file (not a directory) because it was
specified on the commandline, rather than because it was recursed to,
this option has no effect. Symbolic links are always traversed in this
case.
@cindex globbing, toggle @cindex globbing, toggle
@item -g on/off @item -g on/off

BIN
po/cs.gmo

Binary file not shown.

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: GNU wget 1.5.2-b1\n" "Project-Id-Version: GNU wget 1.5.2-b1\n"
"POT-Creation-Date: 2000-08-30 03:32-0700\n" "POT-Creation-Date: 2000-10-09 15:38-0700\n"
"PO-Revision-Date: 1998-06-05 08:47\n" "PO-Revision-Date: 1998-06-05 08:47\n"
"Last-Translator: Jan Prikryl <prikryl@acm.org>\n" "Last-Translator: Jan Prikryl <prikryl@acm.org>\n"
"Language-Team: Czech <cs@li.org>\n" "Language-Team: Czech <cs@li.org>\n"
@ -840,9 +840,11 @@ msgstr ""
# , fuzzy # , fuzzy
#: src/main.c:172 #: src/main.c:172
#, fuzzy
msgid "" msgid ""
"FTP options:\n" "FTP options:\n"
" --retr-symlinks retrieve FTP symbolic links.\n" " --retr-symlinks when recursing, retrieve linked-to files (not "
"dirs).\n"
" -g, --glob=on/off turn file name globbing on or off.\n" " -g, --glob=on/off turn file name globbing on or off.\n"
" --passive-ftp use the \"passive\" transfer mode.\n" " --passive-ftp use the \"passive\" transfer mode.\n"
"\n" "\n"

BIN
po/de.gmo

Binary file not shown.

View File

@ -23,7 +23,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: wget 1.5.2-b4\n" "Project-Id-Version: wget 1.5.2-b4\n"
"POT-Creation-Date: 2000-08-30 03:32-0700\n" "POT-Creation-Date: 2000-10-09 15:38-0700\n"
"PO-Revision-Date: 1998-06-15 19:25+02:00\n" "PO-Revision-Date: 1998-06-15 19:25+02:00\n"
"Last-Translator: Karl Eichwalder <ke@suse.de>\n" "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
"Language-Team: German <de@li.org>\n" "Language-Team: German <de@li.org>\n"
@ -788,9 +788,11 @@ msgstr ""
"\n" "\n"
#: src/main.c:172 #: src/main.c:172
#, fuzzy
msgid "" msgid ""
"FTP options:\n" "FTP options:\n"
" --retr-symlinks retrieve FTP symbolic links.\n" " --retr-symlinks when recursing, retrieve linked-to files (not "
"dirs).\n"
" -g, --glob=on/off turn file name globbing on or off.\n" " -g, --glob=on/off turn file name globbing on or off.\n"
" --passive-ftp use the \"passive\" transfer mode.\n" " --passive-ftp use the \"passive\" transfer mode.\n"
"\n" "\n"

BIN
po/hr.gmo

Binary file not shown.

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: wget 1.5.2-b2\n" "Project-Id-Version: wget 1.5.2-b2\n"
"POT-Creation-Date: 2000-08-30 03:32-0700\n" "POT-Creation-Date: 2000-10-09 15:38-0700\n"
"PO-Revision-Date: 1998-02-29 21:05+01:00\n" "PO-Revision-Date: 1998-02-29 21:05+01:00\n"
"Last-Translator: Hrvoje Niksic <hniksic@srce.hr>\n" "Last-Translator: Hrvoje Niksic <hniksic@srce.hr>\n"
"Language-Team: Croatian <hr-translation@bagan.srce.hr>\n" "Language-Team: Croatian <hr-translation@bagan.srce.hr>\n"
@ -758,9 +758,11 @@ msgstr ""
"\n" "\n"
#: src/main.c:172 #: src/main.c:172
#, fuzzy
msgid "" msgid ""
"FTP options:\n" "FTP options:\n"
" --retr-symlinks retrieve FTP symbolic links.\n" " --retr-symlinks when recursing, retrieve linked-to files (not "
"dirs).\n"
" -g, --glob=on/off turn file name globbing on or off.\n" " -g, --glob=on/off turn file name globbing on or off.\n"
" --passive-ftp use the \"passive\" transfer mode.\n" " --passive-ftp use the \"passive\" transfer mode.\n"
"\n" "\n"

BIN
po/it.gmo

Binary file not shown.

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: wget 1.5.2-b1\n" "Project-Id-Version: wget 1.5.2-b1\n"
"POT-Creation-Date: 2000-08-30 03:32-0700\n" "POT-Creation-Date: 2000-10-09 15:38-0700\n"
"PO-Revision-Date: 1998-06-13 15:22+02:00\n" "PO-Revision-Date: 1998-06-13 15:22+02:00\n"
"Last-Translator: Giovanni Bortolozzo <borto@dei.unipd.it>\n" "Last-Translator: Giovanni Bortolozzo <borto@dei.unipd.it>\n"
"Language-Team: Italian <it@li.org>\n" "Language-Team: Italian <it@li.org>\n"
@ -769,9 +769,11 @@ msgstr ""
"\n" "\n"
#: src/main.c:172 #: src/main.c:172
#, fuzzy
msgid "" msgid ""
"FTP options:\n" "FTP options:\n"
" --retr-symlinks retrieve FTP symbolic links.\n" " --retr-symlinks when recursing, retrieve linked-to files (not "
"dirs).\n"
" -g, --glob=on/off turn file name globbing on or off.\n" " -g, --glob=on/off turn file name globbing on or off.\n"
" --passive-ftp use the \"passive\" transfer mode.\n" " --passive-ftp use the \"passive\" transfer mode.\n"
"\n" "\n"

BIN
po/no.gmo

Binary file not shown.

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: wget 1.5.2-b1\n" "Project-Id-Version: wget 1.5.2-b1\n"
"POT-Creation-Date: 2000-08-30 03:32-0700\n" "POT-Creation-Date: 2000-10-09 15:38-0700\n"
"PO-Revision-Date: 1998-05-22 09:00+0100\n" "PO-Revision-Date: 1998-05-22 09:00+0100\n"
"Last-Translator: Robert Schmidt <rsc@vingmed.no>\n" "Last-Translator: Robert Schmidt <rsc@vingmed.no>\n"
"Language-Team: Norwegian <no@li.org>\n" "Language-Team: Norwegian <no@li.org>\n"
@ -759,9 +759,11 @@ msgstr ""
"\n" "\n"
#: src/main.c:172 #: src/main.c:172
#, fuzzy
msgid "" msgid ""
"FTP options:\n" "FTP options:\n"
" --retr-symlinks retrieve FTP symbolic links.\n" " --retr-symlinks when recursing, retrieve linked-to files (not "
"dirs).\n"
" -g, --glob=on/off turn file name globbing on or off.\n" " -g, --glob=on/off turn file name globbing on or off.\n"
" --passive-ftp use the \"passive\" transfer mode.\n" " --passive-ftp use the \"passive\" transfer mode.\n"
"\n" "\n"

Binary file not shown.

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: wget 1.5-b9\n" "Project-Id-Version: wget 1.5-b9\n"
"POT-Creation-Date: 2000-08-30 03:32-0700\n" "POT-Creation-Date: 2000-10-09 15:38-0700\n"
"PO-Revision-Date: 1998-04-06 22:09-0300\n" "PO-Revision-Date: 1998-04-06 22:09-0300\n"
"Last-Translator: Wanderlei Antonio Cavasin <cavassin@conectiva.com.br>\n" "Last-Translator: Wanderlei Antonio Cavasin <cavassin@conectiva.com.br>\n"
"Language-Team: Portuguese <pt@li.org>\n" "Language-Team: Portuguese <pt@li.org>\n"
@ -828,9 +828,11 @@ msgstr ""
# , fuzzy # , fuzzy
#: src/main.c:172 #: src/main.c:172
#, fuzzy
msgid "" msgid ""
"FTP options:\n" "FTP options:\n"
" --retr-symlinks retrieve FTP symbolic links.\n" " --retr-symlinks when recursing, retrieve linked-to files (not "
"dirs).\n"
" -g, --glob=on/off turn file name globbing on or off.\n" " -g, --glob=on/off turn file name globbing on or off.\n"
" --passive-ftp use the \"passive\" transfer mode.\n" " --passive-ftp use the \"passive\" transfer mode.\n"
"\n" "\n"

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-08-30 03:32-0700\n" "POT-Creation-Date: 2000-10-09 15:38-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -686,7 +686,8 @@ msgstr ""
#: src/main.c:172 #: src/main.c:172
msgid "" msgid ""
"FTP options:\n" "FTP options:\n"
" --retr-symlinks retrieve FTP symbolic links.\n" " --retr-symlinks when recursing, retrieve linked-to files (not "
"dirs).\n"
" -g, --glob=on/off turn file name globbing on or off.\n" " -g, --glob=on/off turn file name globbing on or off.\n"
" --passive-ftp use the \"passive\" transfer mode.\n" " --passive-ftp use the \"passive\" transfer mode.\n"
"\n" "\n"

View File

@ -1,3 +1,9 @@
2000-10-09 Dan Harkless <dan-wget@dilvish.speed.net>
* html.c (htmlfindurl): Added unneeded initialization to quiet warning.
* main.c (print_help): Clarified what --retr-symlinks does.
2000-08-30 Dan Harkless <dan-wget@dilvish.speed.net> 2000-08-30 Dan Harkless <dan-wget@dilvish.speed.net>
* ftp.c (ftp_retrieve_list): Use new INFINITE_RECURSION #define. * ftp.c (ftp_retrieve_list): Use new INFINITE_RECURSION #define.

View File

@ -145,7 +145,7 @@ htmlfindurl (const char *buf, int bufsize, int *size, int init,
{ {
const char* link_href = NULL; const char* link_href = NULL;
const char* link_rel = NULL; const char* link_rel = NULL;
int link_href_saved_size; int link_href_saved_size = 0; /* init. just to shut up warning */
if (!bufsize) if (!bufsize)
break; break;

View File

@ -171,7 +171,7 @@ HTTP options:\n\
-U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION.\n\ -U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION.\n\
\n"), _("\ \n"), _("\
FTP options:\n\ FTP options:\n\
--retr-symlinks retrieve FTP symbolic links.\n\ --retr-symlinks when recursing, retrieve linked-to files (not dirs).\n\
-g, --glob=on/off turn file name globbing on or off.\n\ -g, --glob=on/off turn file name globbing on or off.\n\
--passive-ftp use the \"passive\" transfer mode.\n\ --passive-ftp use the \"passive\" transfer mode.\n\
\n"), _("\ \n"), _("\