aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg-error.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-11-30 15:36:39 +0000
committerWerner Koch <[email protected]>2006-11-30 15:36:39 +0000
commit85bb107c10d6f9c3eb8f2b93e047588b3f77a666 (patch)
tree052e65b56e2eaec0d2ce7fbe521e428a08ba13ed /src/gpg-error.c
parentRemoved included gettext and updated latest gettext (diff)
downloadlibgpg-error-85bb107c10d6f9c3eb8f2b93e047588b3f77a666.tar.gz
libgpg-error-85bb107c10d6f9c3eb8f2b93e047588b3f77a666.zip
* configure.ac: Set LT version to C3/A3/R1.libgpg-error-1.5
* README: Switch to tar.bz2 and sha1sum. * src/gpg-error.c (main): Add option --version. * autogen.sh (FORCE): Add option --force. * intl/: Removed. * Makefile.am (SUBDIRS): Removed intl. * configure.ac (AM_GNU_GETTEXT): Use external flag * src/Makefile.am: Removed -I../intl.
Diffstat (limited to 'src/gpg-error.c')
-rw-r--r--src/gpg-error.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gpg-error.c b/src/gpg-error.c
index e5b7fc4..cc26292 100644
--- a/src/gpg-error.c
+++ b/src/gpg-error.c
@@ -451,11 +451,19 @@ main (int argc, char *argv[])
i18n_init ();
+
if (argc == 1)
{
- fprintf (stderr, _("Usage: %s GPG-ERROR [...]\n"), argv[0]);
+ fprintf (stderr, _("Usage: %s GPG-ERROR [...]\n"),
+ strrchr (argv[0],'/')? (strrchr (argv[0], '/')+1): argv[0]);
exit (1);
}
+ else if (argc == 2 && !strcmp (argv[1], "--version"))
+ {
+ fputs ("gpg-error (" PACKAGE_NAME ") " PACKAGE_VERSION "\n", stdout);
+ exit (0);
+ }
+
while (i < argc)
{