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

[svn] Documentation fix.

This commit is contained in:
hniksic 2005-03-19 09:25:44 -08:00
parent c36e9a5272
commit 25e3bfdbea
2 changed files with 24 additions and 21 deletions

31
INSTALL
View File

@ -28,24 +28,23 @@ scripts take. The most important ones are:
--target=TARGET configure for TARGET [TARGET=HOST] --target=TARGET configure for TARGET [TARGET=HOST]
--enable and --with options recognized (mostly Wget-specific): --enable and --with options recognized (mostly Wget-specific):
--with-socks use the socks library
--with-ssl[=SSL_ROOT] link with libssl [in SSL_ROOT/lib] for https: support --with-ssl[=SSL_ROOT] link with libssl [in SSL_ROOT/lib] for https: support
--disable-opie disable support for opie or s/key FTP login --disable-opie disable support for opie or s/key FTP login
--disable-digest disable support for HTTP digest authorization --disable-digest disable support for HTTP digest authorization
--disable-debug disable support for debugging output --disable-debug disable support for debugging output
--disable-nls do not use Native Language Support --disable-nls do not use Native Language Support
--disable-largefile omit support for large files
--disable-ipv6 disable IPv6 support
So, if you want to configure Wget for installation in your home So, if you want to configure Wget for installation in your home
directory, you can type: directory, you can type:
./configure --prefix=$HOME
./configure --prefix=$HOME
You can customize many default settings by editing Makefile and You can customize many default settings by editing Makefile and
config.h. The program will work very well without your touching these config.h. The program will work very well without your touching these
files, but it is useful to have a look at things you can change there. files, but it is useful to have a look at things you can change there.
If you use socks, it is useful to add -L/usr/local/lib (or wherever
the socks library is installed) to LDFLAGS in Makefile.
If you have OpenSSL libraries installed in one of the default If you have OpenSSL libraries installed in one of the default
directories, such as /usr/local/lib or /usr/local/ssl/lib, you can directories, such as /usr/local/lib or /usr/local/ssl/lib, you can
simply `configure --with-ssl'. If you have it installed elsewhere, simply `configure --with-ssl'. If you have it installed elsewhere,
@ -53,15 +52,18 @@ you need to specify your alternate OpenSSL root directory. For
instance, if libcrypto.* and libssl.* are in /opt/openssl/lib, you instance, if libcrypto.* and libssl.* are in /opt/openssl/lib, you
need to `configure --with-ssl=/opt/openssl'. need to `configure --with-ssl=/opt/openssl'.
To configure Wget on Windows, read the instructions in `windows/Readme'. To configure Wget on Windows, read the instructions in
If this doesn't work for any reason, talk to the Windows developers `windows/README'. If this doesn't work for any reason, talk to the
listed there; I do not maintain the port. Windows developers listed there; I do not maintain the port. That
does not apply to the "Cygwin" environment, where Wget should compile
out of the box as described here.
2) Compilation 2) Compilation
To compile the program, type make and cross your fingers. If you do To compile the program, type make and cross your fingers. If you do
not have an ANSI compiler, Wget will try to KNR-ize its sources "on not have an ANSI compiler, Wget will try to KNR-ize its sources "on
the fly". This should make GNU Wget compilable virtually anywhere. the fly". This should make GNU Wget compilable on almost any
Unix-like system out there.
After the compilation a ready to use `wget' executable should reside After the compilation a ready to use `wget' executable should reside
in the src directory. I do not have any kind of test-suite as of this in the src directory. I do not have any kind of test-suite as of this
@ -71,11 +73,14 @@ works.
3) Installation 3) Installation
Use `make install' to install GNU Wget to directories specified to Use `make install' to install GNU Wget to directories specified to
configure (/usr/local/* by default). configure. The standard prefix is "/usr/local/", which can be changed
using the `--prefix' configure option.
The standard installation process will copy the wget binary to The installation process will copy the wget binary to $PREFIX/bin,
/usr/local/bin, install the info pages (wget.info*) to install the wget.info* info pages to $PREFIX/info, the autogenerated
/usr/local/info. You can customize the directories either through the manual page (where available) wget.1 to $PREFIX/man/man1, and the
default config file to $PREFIX/etc, unless a config file already
exists there. You can customize these directories either through the
configuration process or making the necessary changes in the Makefile. configuration process or making the necessary changes in the Makefile.
To delete the files created by Wget installation, you can use make To delete the files created by Wget installation, you can use make

View File

@ -730,17 +730,15 @@ static int tag_backout_count;
MAPFUN will be called with two arguments: pointer to an initialized MAPFUN will be called with two arguments: pointer to an initialized
struct taginfo, and MAPARG. struct taginfo, and MAPARG.
ALLOWED_TAG_NAMES should be a NULL-terminated array of tag names to ALLOWED_TAGS and ALLOWED_ATTRIBUTES are hash tables the keys of
be processed by this function. If it is NULL, all the tags are which are the tags and attribute names that this function should
allowed. The same goes for attributes and ALLOWED_ATTRIBUTE_NAMES. use. If ALLOWED_TAGS is NULL, all tags are processed; if
ALLOWED_ATTRIBUTES is NULL, all attributes are returned.
(Obviously, the caller can filter out unwanted tags and attributes (Obviously, the caller can filter out unwanted tags and attributes
just as well, but this is just an optimization designed to avoid just as well, but this is just an optimization designed to avoid
unnecessary copying for tags/attributes which the caller doesn't unnecessary copying of tags/attributes which the caller doesn't
want to know about. These lists are searched linearly; therefore, care about.) */
if you're interested in a large number of tags or attributes, you'd
better set these to NULL and filter them out yourself with a
hashing process most appropriate for your application.) */
void void
map_html_tags (const char *text, int size, map_html_tags (const char *text, int size,