mirror of
https://github.com/mirror/wget.git
synced 2025-03-28 21:10:20 +08:00
Remove version.h; we generate version.c these days.
This commit is contained in:
parent
c2fe2f4159
commit
ae042e99cf
@ -66,12 +66,12 @@ as that of the covered work. */
|
|||||||
#include "test.h"
|
#include "test.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "version.h"
|
|
||||||
|
|
||||||
#ifdef __VMS
|
#ifdef __VMS
|
||||||
# include "vms.h"
|
# include "vms.h"
|
||||||
#endif /* def __VMS */
|
#endif /* def __VMS */
|
||||||
|
|
||||||
|
extern char *version_string;
|
||||||
|
|
||||||
/* Forward decls. */
|
/* Forward decls. */
|
||||||
struct http_stat;
|
struct http_stat;
|
||||||
static char *create_authorization_line (const char *, const char *,
|
static char *create_authorization_line (const char *, const char *,
|
||||||
@ -1350,7 +1350,7 @@ free_hstat (struct http_stat *hs)
|
|||||||
if (!opt.useragent) \
|
if (!opt.useragent) \
|
||||||
request_set_header (req, "User-Agent", \
|
request_set_header (req, "User-Agent", \
|
||||||
aprintf ("Wget/%s (VMS %s %s)", \
|
aprintf ("Wget/%s (VMS %s %s)", \
|
||||||
VERSION_STRING, vms_arch(), vms_vers()), \
|
version_string, vms_arch(), vms_vers()), \
|
||||||
rel_value); \
|
rel_value); \
|
||||||
else if (*opt.useragent) \
|
else if (*opt.useragent) \
|
||||||
request_set_header (req, "User-Agent", opt.useragent, rel_none); \
|
request_set_header (req, "User-Agent", opt.useragent, rel_none); \
|
||||||
@ -1360,7 +1360,7 @@ free_hstat (struct http_stat *hs)
|
|||||||
if (!opt.useragent) \
|
if (!opt.useragent) \
|
||||||
request_set_header (req, "User-Agent", \
|
request_set_header (req, "User-Agent", \
|
||||||
aprintf ("Wget/%s (%s)", \
|
aprintf ("Wget/%s (%s)", \
|
||||||
VERSION_STRING, OS_TYPE), \
|
version_string, OS_TYPE), \
|
||||||
rel_value); \
|
rel_value); \
|
||||||
else if (*opt.useragent) \
|
else if (*opt.useragent) \
|
||||||
request_set_header (req, "User-Agent", opt.useragent, rel_none); \
|
request_set_header (req, "User-Agent", opt.useragent, rel_none); \
|
||||||
|
@ -63,8 +63,6 @@ as that of the covered work. */
|
|||||||
#include "vms.h"
|
#include "vms.h"
|
||||||
#endif /* __VMS */
|
#endif /* __VMS */
|
||||||
|
|
||||||
#include "version.h"
|
|
||||||
|
|
||||||
#ifndef PATH_SEPARATOR
|
#ifndef PATH_SEPARATOR
|
||||||
# define PATH_SEPARATOR '/'
|
# define PATH_SEPARATOR '/'
|
||||||
#endif
|
#endif
|
||||||
@ -681,7 +679,7 @@ Recursive accept/reject:\n"),
|
|||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
printf (_("GNU Wget %s, a non-interactive network retriever.\n"),
|
printf (_("GNU Wget %s, a non-interactive network retriever.\n"),
|
||||||
VERSION_STRING);
|
version_string);
|
||||||
print_usage ();
|
print_usage ();
|
||||||
|
|
||||||
for (i = 0; i < countof (help); i++)
|
for (i = 0; i < countof (help); i++)
|
||||||
@ -782,7 +780,7 @@ print_version (void)
|
|||||||
|
|
||||||
#ifdef __VMS
|
#ifdef __VMS
|
||||||
printf ("GNU Wget %s built on VMS %s %s.\n\n",
|
printf ("GNU Wget %s built on VMS %s %s.\n\n",
|
||||||
VERSION_STRING, vms_arch(), vms_vers());
|
version_string, vms_arch(), vms_vers());
|
||||||
#else /* def __VMS */
|
#else /* def __VMS */
|
||||||
printf ("GNU Wget %s built on %s.\n\n", version_string, OS_TYPE);
|
printf ("GNU Wget %s built on %s.\n\n", version_string, OS_TYPE);
|
||||||
#endif /* def __VMS */
|
#endif /* def __VMS */
|
||||||
@ -1152,7 +1150,7 @@ for details.\n\n"));
|
|||||||
log_init (opt.lfilename, append_to_log);
|
log_init (opt.lfilename, append_to_log);
|
||||||
|
|
||||||
DEBUGP (("DEBUG output created by Wget %s on %s.\n\n",
|
DEBUGP (("DEBUG output created by Wget %s on %s.\n\n",
|
||||||
VERSION_STRING, OS_TYPE));
|
version_string, OS_TYPE));
|
||||||
|
|
||||||
/* Open the output filename if necessary. */
|
/* Open the output filename if necessary. */
|
||||||
|
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
/* Program version
|
|
||||||
Copyright (C) 2008 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of GNU Wget.
|
|
||||||
|
|
||||||
GNU Wget is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
GNU Wget is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with Wget. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Additional permission under GNU GPL version 3 section 7
|
|
||||||
|
|
||||||
If you modify this program, or any covered work, by linking or
|
|
||||||
combining it with the OpenSSL project's OpenSSL library (or a
|
|
||||||
modified version of that library), containing parts covered by the
|
|
||||||
terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
|
|
||||||
grants you additional permission to convey the resulting work.
|
|
||||||
Corresponding Source for a non-source form of such a combination
|
|
||||||
shall include the source code for the parts of OpenSSL used as well
|
|
||||||
as that of the covered work. */
|
|
||||||
|
|
||||||
#ifndef VERSION_H
|
|
||||||
#define VERSION_H
|
|
||||||
|
|
||||||
#define VERSION_STRING "1.11a"
|
|
||||||
|
|
||||||
#endif /* def VERSION_H */
|
|
Loading…
Reference in New Issue
Block a user