#include "test.h"
#endif
-#include "version.h"
-
#ifdef __VMS
# include "vms.h"
#endif /* def __VMS */
+extern char *version_string;
+
/* Forward decls. */
struct http_stat;
static char *create_authorization_line (const char *, const char *,
if (!opt.useragent) \
request_set_header (req, "User-Agent", \
aprintf ("Wget/%s (VMS %s %s)", \
- VERSION_STRING, vms_arch(), vms_vers()), \
+ version_string, vms_arch(), vms_vers()), \
rel_value); \
else if (*opt.useragent) \
request_set_header (req, "User-Agent", opt.useragent, rel_none); \
if (!opt.useragent) \
request_set_header (req, "User-Agent", \
aprintf ("Wget/%s (%s)", \
- VERSION_STRING, OS_TYPE), \
+ version_string, OS_TYPE), \
rel_value); \
else if (*opt.useragent) \
request_set_header (req, "User-Agent", opt.useragent, rel_none); \
#include "vms.h"
#endif /* __VMS */
-#include "version.h"
-
#ifndef PATH_SEPARATOR
# define PATH_SEPARATOR '/'
#endif
size_t i;
printf (_("GNU Wget %s, a non-interactive network retriever.\n"),
- VERSION_STRING);
+ version_string);
print_usage ();
for (i = 0; i < countof (help); i++)
#ifdef __VMS
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 */
printf ("GNU Wget %s built on %s.\n\n", version_string, OS_TYPE);
#endif /* def __VMS */
log_init (opt.lfilename, append_to_log);
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. */
+++ /dev/null
-/* 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 */