]> sjero.net Git - wget/commitdiff
Remove version.h; we generate version.c these days.
authorMicah Cowan <micah@cowan.name>
Sat, 4 Jul 2009 23:15:26 +0000 (16:15 -0700)
committerMicah Cowan <micah@cowan.name>
Sat, 4 Jul 2009 23:15:26 +0000 (16:15 -0700)
src/http.c
src/main.c
src/version.h [deleted file]

index 4e49ed4fd1ce0748e598890656a8eb94da2d9de9..974951a1c580357866741f8b0630d6afc138f425 100644 (file)
@@ -66,12 +66,12 @@ as that of the covered work.  */
 #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 *,
@@ -1350,7 +1350,7 @@ free_hstat (struct http_stat *hs)
   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);     \
@@ -1360,7 +1360,7 @@ free_hstat (struct http_stat *hs)
   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);     \
index 366047fe460f50f935ad9481f063b1c42411084b..713b240ac4203759dd0c42b8886122f332a35d81 100644 (file)
@@ -63,8 +63,6 @@ as that of the covered work.  */
 #include "vms.h"
 #endif /* __VMS */
 
-#include "version.h"
-
 #ifndef PATH_SEPARATOR
 # define PATH_SEPARATOR '/'
 #endif
@@ -681,7 +679,7 @@ Recursive accept/reject:\n"),
   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++)
@@ -782,7 +780,7 @@ print_version (void)
 
 #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 */
@@ -1152,7 +1150,7 @@ for details.\n\n"));
   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.  */
 
diff --git a/src/version.h b/src/version.h
deleted file mode 100644 (file)
index a7073b6..0000000
+++ /dev/null
@@ -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 */