[svn] GnuPG - r4874 - branches/STABLE-BRANCH-1-4/keyserver
svn author dshaw
cvs at cvs.gnupg.org
Tue Nov 18 18:09:08 CET 2008
Author: dshaw
Date: 2008-11-18 18:09:07 +0100 (Tue, 18 Nov 2008)
New Revision: 4874
Modified:
branches/STABLE-BRANCH-1-4/keyserver/ChangeLog
branches/STABLE-BRANCH-1-4/keyserver/curl-shim.h
branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_curl.c
branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_finger.c
branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_hkp.c
branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_ldap.c
Log:
* curl-shim.h (curl_version): No need to provide a version for
curl-shim as it always matches the GnuPG version.
* gpgkeys_curl.c, gpgkeys_hkp.c (main): Show which version of curl
we're using as part of --version.
* gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_ldap.c
(show_help): Document --version.
Modified: branches/STABLE-BRANCH-1-4/keyserver/ChangeLog
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/ChangeLog 2008-11-13 12:37:45 UTC (rev 4873)
+++ branches/STABLE-BRANCH-1-4/keyserver/ChangeLog 2008-11-18 17:09:07 UTC (rev 4874)
@@ -1,3 +1,14 @@
+2008-11-18 David Shaw <dshaw at jabberwocky.com>
+
+ * curl-shim.h (curl_version): No need to provide a version for
+ curl-shim as it always matches the GnuPG version.
+
+ * gpgkeys_curl.c, gpgkeys_hkp.c (main): Show which version of curl
+ we're using as part of --version.
+
+ * gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_hkp.c,
+ gpgkeys_ldap.c (show_help): Document --version.
+
2008-04-14 David Shaw <dshaw at jabberwocky.com>
* gpgkeys_curl.c (main), gpgkeys_hkp.c (main): Make sure all
Modified: branches/STABLE-BRANCH-1-4/keyserver/curl-shim.h
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/curl-shim.h 2008-11-13 12:37:45 UTC (rev 4873)
+++ branches/STABLE-BRANCH-1-4/keyserver/curl-shim.h 2008-11-18 17:09:07 UTC (rev 4874)
@@ -91,7 +91,7 @@
void curl_easy_cleanup(CURL *curl);
char *curl_easy_escape(CURL *curl,char *str,int len);
#define curl_free(x) free(x)
-#define curl_version() "GnuPG curl-shim "VERSION
+#define curl_version() "GnuPG curl-shim"
curl_version_info_data *curl_version_info(int type);
#endif /* !_CURL_SHIM_H_ */
Modified: branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_curl.c
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_curl.c 2008-11-13 12:37:45 UTC (rev 4873)
+++ branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_curl.c 2008-11-18 17:09:07 UTC (rev 4874)
@@ -103,9 +103,10 @@
static void
show_help (FILE *fp)
{
- fprintf (fp,"-h\thelp\n");
- fprintf (fp,"-V\tversion\n");
- fprintf (fp,"-o\toutput to this file\n");
+ fprintf (fp,"-h, --help\thelp\n");
+ fprintf (fp,"-V\t\tmachine readable version\n");
+ fprintf (fp,"--version\thuman readable version\n");
+ fprintf (fp,"-o\t\toutput to this file\n");
}
int
@@ -123,7 +124,7 @@
/* Kludge to implement standard GNU options. */
if (argc > 1 && !strcmp (argv[1], "--version"))
{
- fputs ("gpgkeys_curl (GnuPG) " VERSION"\n", stdout);
+ printf("gpgkeys_curl (GnuPG) "VERSION" (uses %s)\n",curl_version());
return 0;
}
else if (argc > 1 && !strcmp (argv[1], "--help"))
Modified: branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_finger.c
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_finger.c 2008-11-13 12:37:45 UTC (rev 4873)
+++ branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_finger.c 2008-11-18 17:09:07 UTC (rev 4874)
@@ -352,9 +352,10 @@
static void
show_help (FILE *fp)
{
- fprintf (fp,"-h\thelp\n");
- fprintf (fp,"-V\tversion\n");
- fprintf (fp,"-o\toutput to this file\n");
+ fprintf (fp,"-h, --help\thelp\n");
+ fprintf (fp,"-V\t\tmachine readable version\n");
+ fprintf (fp,"--version\thuman readable version\n");
+ fprintf (fp,"-o\t\toutput to this file\n");
}
int
Modified: branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_hkp.c
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_hkp.c 2008-11-13 12:37:45 UTC (rev 4873)
+++ branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_hkp.c 2008-11-18 17:09:07 UTC (rev 4874)
@@ -497,9 +497,10 @@
static void
show_help (FILE *fp)
{
- fprintf (fp,"-h\thelp\n");
- fprintf (fp,"-V\tversion\n");
- fprintf (fp,"-o\toutput to this file\n");
+ fprintf (fp,"-h, --help\thelp\n");
+ fprintf (fp,"-V\t\tmachine readable version\n");
+ fprintf (fp,"--version\thuman readable version\n");
+ fprintf (fp,"-o\t\toutput to this file\n");
}
int
@@ -516,7 +517,7 @@
/* Kludge to implement standard GNU options. */
if (argc > 1 && !strcmp (argv[1], "--version"))
{
- fputs ("gpgkeys_hkp (GnuPG) " VERSION"\n", stdout);
+ printf("gpgkeys_hkp (GnuPG) "VERSION" (uses %s)\n",curl_version());
return 0;
}
else if (argc > 1 && !strcmp (argv[1], "--help"))
Modified: branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_ldap.c
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_ldap.c 2008-11-13 12:37:45 UTC (rev 4873)
+++ branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_ldap.c 2008-11-18 17:09:07 UTC (rev 4874)
@@ -1778,9 +1778,10 @@
static void
show_help (FILE *fp)
{
- fprintf (fp,"-h\thelp\n");
- fprintf (fp,"-V\tversion\n");
- fprintf (fp,"-o\toutput to this file\n");
+ fprintf (fp,"-h, --help\thelp\n");
+ fprintf (fp,"-V\t\tmachine readable version\n");
+ fprintf (fp,"--version\thuman readable version\n");
+ fprintf (fp,"-o\t\toutput to this file\n");
}
int
More information about the Gnupg-commits
mailing list