Mercurial > hg > octave-kai > gnulib-hg
annotate lib/version-etc.c @ 16366:bb182ee4a09d
maint: replace FSF snail-mail addresses with URLs
* config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
* lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
* lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
* lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
* lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
* lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
* lib/check-version.c, lib/check-version.h, lib/config.charset:
* lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
* lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
* lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
* lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
* lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
* lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
* lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
* lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
* lib/glthread/thread.c, lib/glthread/thread.h:
* lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
* lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
* lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
* lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
* lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
* lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
* lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
* lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
* lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
* lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
* lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
* lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
* lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
* lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
* lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
* lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
* lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
* lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
* lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
* lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
* lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
* lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
* lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
* lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
* lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
* lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
* lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
* lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
* lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
* lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
* lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
* lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
* lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
* lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
* lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
* lib/xsize.h, tests/test-closein.c, tests/test-des.c:
* tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
* tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
* tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
* tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
* tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
* tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
* tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
* tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
* tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
* tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
* tests/test-poll.c, tests/test-quotearg-simple.c:
* tests/test-quotearg.c, tests/test-quotearg.h:
* tests/test-round-ieee.c, tests/test-round1.c:
* tests/test-roundf-ieee.c, tests/test-roundf1.c:
* tests/test-roundl-ieee.c, tests/test-roundl.c:
* tests/test-safe-alloc.c, tests/test-sigpipe.c:
* tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
* tests/test-strerror.c, tests/test-strerror_r.c:
* tests/test-strsignal.c, tests/test-strverscmp.c:
* tests/test-xmemdup0.c:
Replace FSF snail mail addresses with URLs, as per GNU coding
standards. See glibc bug
<http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 09 Feb 2012 21:39:05 -0800 |
parents | 146843414cf0 |
children | 83765d325866 |
rev | line source |
---|---|
11073
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
1 /* Print --version and bug-reporting information in a consistent format. |
16200
146843414cf0
version-etc: update copyright year reported by --version
Jim Meyering <meyering@redhat.com>
parents:
14079
diff
changeset
|
2 Copyright (C) 1999-2012 Free Software Foundation, Inc. |
1754 | 3 |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9084
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
1754 | 5 it under the terms of the GNU General Public License as published by |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9084
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9084
diff
changeset
|
7 (at your option) any later version. |
1754 | 8 |
9 This program is distributed in the hope that it will be useful, | |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 GNU General Public License for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9084
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
1754 | 16 |
1941
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
17 /* Written by Jim Meyering. */ |
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
18 |
7302
8a1a9361108c
* _fpending.c: Include <config.h> unconditionally, since we no
Paul Eggert <eggert@cs.ucla.edu>
parents:
7048
diff
changeset
|
19 #include <config.h> |
1754 | 20 |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
21 /* Specification. */ |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
22 #include "version-etc.h" |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
23 |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
24 #include <stdarg.h> |
1754 | 25 #include <stdio.h> |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
26 #include <stdlib.h> |
5318
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
27 |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
28 #if USE_UNLOCKED_IO |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
29 # include "unlocked-io.h" |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
30 #endif |
1754 | 31 |
3966
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3692
diff
changeset
|
32 #include "gettext.h" |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3692
diff
changeset
|
33 #define _(msgid) gettext (msgid) |
1754 | 34 |
12350
2ea8aa487297
version-etc: work also with AM_INIT_AUTOMAKE's no-define option
Andy Wingo <wingo@pobox.com>
parents:
12272
diff
changeset
|
35 /* If you use AM_INIT_AUTOMAKE's no-define option, |
2ea8aa487297
version-etc: work also with AM_INIT_AUTOMAKE's no-define option
Andy Wingo <wingo@pobox.com>
parents:
12272
diff
changeset
|
36 PACKAGE is not defined. Use PACKAGE_TARNAME instead. */ |
2ea8aa487297
version-etc: work also with AM_INIT_AUTOMAKE's no-define option
Andy Wingo <wingo@pobox.com>
parents:
12272
diff
changeset
|
37 #if ! defined PACKAGE && defined PACKAGE_TARNAME |
2ea8aa487297
version-etc: work also with AM_INIT_AUTOMAKE's no-define option
Andy Wingo <wingo@pobox.com>
parents:
12272
diff
changeset
|
38 # define PACKAGE PACKAGE_TARNAME |
2ea8aa487297
version-etc: work also with AM_INIT_AUTOMAKE's no-define option
Andy Wingo <wingo@pobox.com>
parents:
12272
diff
changeset
|
39 #endif |
2ea8aa487297
version-etc: work also with AM_INIT_AUTOMAKE's no-define option
Andy Wingo <wingo@pobox.com>
parents:
12272
diff
changeset
|
40 |
16200
146843414cf0
version-etc: update copyright year reported by --version
Jim Meyering <meyering@redhat.com>
parents:
14079
diff
changeset
|
41 enum { COPYRIGHT_YEAR = 2012 }; |
5985
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
42 |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
43 /* The three functions below display the --version information the |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
44 standard way. |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
45 |
11652
7c297f566e07
Fix inconsistencies in the previous commit.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11650
diff
changeset
|
46 If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
47 the program. The formats are therefore: |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
48 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
49 PACKAGE VERSION |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
50 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
51 or |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
52 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
53 COMMAND_NAME (PACKAGE) VERSION. |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
54 |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
55 The functions differ in the way they are passed author names. */ |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
56 |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
57 /* Display the --version information the standard way. |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
58 |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
59 Author names are given in the array AUTHORS. N_AUTHORS is the |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
60 number of elements in the array. */ |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
61 void |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
62 version_etc_arn (FILE *stream, |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
63 const char *command_name, const char *package, |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
64 const char *version, |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
65 const char * const * authors, size_t n_authors) |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
66 { |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
67 if (command_name) |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
68 fprintf (stream, "%s (%s) %s\n", command_name, package, version); |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
69 else |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
70 fprintf (stream, "%s %s\n", package, version); |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
71 |
11603
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
72 #ifdef PACKAGE_PACKAGER |
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
73 # ifdef PACKAGE_PACKAGER_VERSION |
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
74 fprintf (stream, _("Packaged by %s (%s)\n"), PACKAGE_PACKAGER, |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
75 PACKAGE_PACKAGER_VERSION); |
11603
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
76 # else |
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
77 fprintf (stream, _("Packaged by %s\n"), PACKAGE_PACKAGER); |
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
78 # endif |
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
79 #endif |
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
80 |
5985
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
81 /* TRANSLATORS: Translate "(C)" to the copyright symbol |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
82 (C-in-a-circle), if this symbol is available in the user's |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
83 locale. Otherwise, do not translate "(C)"; leave it as-is. */ |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
84 fprintf (stream, version_etc_copyright, _("(C)"), COPYRIGHT_YEAR); |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
85 |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
86 fputs (_("\ |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
87 \n\ |
11103
a3005e4cadff
version-etc: use consistent URL formatting
Eric Blake <ebb9@byu.net>
parents:
11073
diff
changeset
|
88 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n\ |
8502
299eb748632a
* lib/version-etc.c (version_etc_va): Update license wording to
Eric Blake <ebb9@byu.net>
parents:
7769
diff
changeset
|
89 This is free software: you are free to change and redistribute it.\n\ |
5985
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
90 There is NO WARRANTY, to the extent permitted by law.\n\ |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
91 \n\ |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
92 "), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
93 stream); |
5985
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
94 |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
95 switch (n_authors) |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
96 { |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
97 case 0: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
98 /* The caller must provide at least one author name. */ |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
99 abort (); |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
100 case 1: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
101 /* TRANSLATORS: %s denotes an author name. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
102 fprintf (stream, _("Written by %s.\n"), authors[0]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
103 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
104 case 2: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
105 /* TRANSLATORS: Each %s denotes an author name. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
106 fprintf (stream, _("Written by %s and %s.\n"), authors[0], authors[1]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
107 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
108 case 3: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
109 /* TRANSLATORS: Each %s denotes an author name. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
110 fprintf (stream, _("Written by %s, %s, and %s.\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
111 authors[0], authors[1], authors[2]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
112 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
113 case 4: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
114 /* TRANSLATORS: Each %s denotes an author name. |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
115 You can use line breaks, estimating that each author name occupies |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
116 ca. 16 screen columns and that a screen line has ca. 80 columns. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
117 fprintf (stream, _("Written by %s, %s, %s,\nand %s.\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
118 authors[0], authors[1], authors[2], authors[3]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
119 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
120 case 5: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
121 /* TRANSLATORS: Each %s denotes an author name. |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
122 You can use line breaks, estimating that each author name occupies |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
123 ca. 16 screen columns and that a screen line has ca. 80 columns. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
124 fprintf (stream, _("Written by %s, %s, %s,\n%s, and %s.\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
125 authors[0], authors[1], authors[2], authors[3], authors[4]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
126 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
127 case 6: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
128 /* TRANSLATORS: Each %s denotes an author name. |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
129 You can use line breaks, estimating that each author name occupies |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
130 ca. 16 screen columns and that a screen line has ca. 80 columns. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
131 fprintf (stream, _("Written by %s, %s, %s,\n%s, %s, and %s.\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
132 authors[0], authors[1], authors[2], authors[3], authors[4], |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
133 authors[5]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
134 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
135 case 7: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
136 /* TRANSLATORS: Each %s denotes an author name. |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
137 You can use line breaks, estimating that each author name occupies |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
138 ca. 16 screen columns and that a screen line has ca. 80 columns. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
139 fprintf (stream, _("Written by %s, %s, %s,\n%s, %s, %s, and %s.\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
140 authors[0], authors[1], authors[2], authors[3], authors[4], |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
141 authors[5], authors[6]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
142 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
143 case 8: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
144 /* TRANSLATORS: Each %s denotes an author name. |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
145 You can use line breaks, estimating that each author name occupies |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
146 ca. 16 screen columns and that a screen line has ca. 80 columns. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
147 fprintf (stream, _("\ |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
148 Written by %s, %s, %s,\n%s, %s, %s, %s,\nand %s.\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
149 authors[0], authors[1], authors[2], authors[3], authors[4], |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
150 authors[5], authors[6], authors[7]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
151 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
152 case 9: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
153 /* TRANSLATORS: Each %s denotes an author name. |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
154 You can use line breaks, estimating that each author name occupies |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
155 ca. 16 screen columns and that a screen line has ca. 80 columns. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
156 fprintf (stream, _("\ |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
157 Written by %s, %s, %s,\n%s, %s, %s, %s,\n%s, and %s.\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
158 authors[0], authors[1], authors[2], authors[3], authors[4], |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
159 authors[5], authors[6], authors[7], authors[8]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
160 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
161 default: |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
162 /* 10 or more authors. Use an abbreviation, since the human reader |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
163 will probably not want to read the entire list anyway. */ |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
164 /* TRANSLATORS: Each %s denotes an author name. |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
165 You can use line breaks, estimating that each author name occupies |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
166 ca. 16 screen columns and that a screen line has ca. 80 columns. */ |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
167 fprintf (stream, _("\ |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
168 Written by %s, %s, %s,\n%s, %s, %s, %s,\n%s, %s, and others.\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
169 authors[0], authors[1], authors[2], authors[3], authors[4], |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
170 authors[5], authors[6], authors[7], authors[8]); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
171 break; |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
172 } |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
173 } |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
174 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
175 /* Display the --version information the standard way. See the initial |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
176 comment to this module, for more information. |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
177 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
178 Author names are given in the NULL-terminated array AUTHORS. */ |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
179 void |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
180 version_etc_ar (FILE *stream, |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
181 const char *command_name, const char *package, |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
182 const char *version, const char * const * authors) |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
183 { |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
184 size_t n_authors; |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
185 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
186 for (n_authors = 0; authors[n_authors]; n_authors++) |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
187 ; |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
188 version_etc_arn (stream, command_name, package, version, authors, n_authors); |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
189 } |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
190 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
191 /* Display the --version information the standard way. See the initial |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
192 comment to this module, for more information. |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
193 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
194 Author names are given in the NULL-terminated va_list AUTHORS. */ |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
195 void |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
196 version_etc_va (FILE *stream, |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
197 const char *command_name, const char *package, |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
198 const char *version, va_list authors) |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
199 { |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
200 size_t n_authors; |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
201 const char *authtab[10]; |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
202 |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
203 for (n_authors = 0; |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
204 n_authors < 10 |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
205 && (authtab[n_authors] = va_arg (authors, const char *)) != NULL; |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
206 n_authors++) |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
207 ; |
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
208 version_etc_arn (stream, command_name, package, version, |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
209 authtab, n_authors); |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
210 } |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
211 |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
212 |
1941
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
213 /* Display the --version information the standard way. |
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
214 |
11652
7c297f566e07
Fix inconsistencies in the previous commit.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11650
diff
changeset
|
215 If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of |
1941
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
216 the program. The formats are therefore: |
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
217 |
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
218 PACKAGE VERSION |
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
219 |
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
220 or |
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
221 |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
222 COMMAND_NAME (PACKAGE) VERSION. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
223 |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
224 The authors names are passed as separate arguments, with an additional |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
225 NULL argument at the end. */ |
1754 | 226 void |
227 version_etc (FILE *stream, | |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
228 const char *command_name, const char *package, |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
229 const char *version, /* const char *author1, ...*/ ...) |
1754 | 230 { |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
231 va_list authors; |
1941
0e058c7494a6
(version_etc_copyright): Default copyright string.
Jim Meyering <jim@meyering.net>
parents:
1842
diff
changeset
|
232 |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
233 va_start (authors, version); |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4133
diff
changeset
|
234 version_etc_va (stream, command_name, package, version, authors); |
11650
7b211eff2192
Provide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
11603
diff
changeset
|
235 va_end (authors); |
1754 | 236 } |
11073
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
237 |
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
238 void |
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
239 emit_bug_reporting_address (void) |
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
240 { |
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
241 /* TRANSLATORS: The placeholder indicates the bug-reporting address |
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
242 for this package. Please add _another line_ saying |
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
243 "Report translation bugs to <...>\n" with the address for translation |
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
244 bugs (typically your translation team's web or email address). */ |
12272
1660263d2a54
version-etc: match standards.texi style
Eric Blake <ebb9@byu.net>
parents:
11655
diff
changeset
|
245 printf (_("\nReport bugs to: %s\n"), PACKAGE_BUGREPORT); |
11603
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
246 #ifdef PACKAGE_PACKAGER_BUG_REPORTS |
12272
1660263d2a54
version-etc: match standards.texi style
Eric Blake <ebb9@byu.net>
parents:
11655
diff
changeset
|
247 printf (_("Report %s bugs to: %s\n"), PACKAGE_PACKAGER, |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
248 PACKAGE_PACKAGER_BUG_REPORTS); |
11603
95f56b9a5977
version-etc: extend for packagers
Mike Frysinger <vapier@gentoo.org>
parents:
11103
diff
changeset
|
249 #endif |
12272
1660263d2a54
version-etc: match standards.texi style
Eric Blake <ebb9@byu.net>
parents:
11655
diff
changeset
|
250 #ifdef PACKAGE_URL |
1660263d2a54
version-etc: match standards.texi style
Eric Blake <ebb9@byu.net>
parents:
11655
diff
changeset
|
251 printf (_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_URL); |
1660263d2a54
version-etc: match standards.texi style
Eric Blake <ebb9@byu.net>
parents:
11655
diff
changeset
|
252 #else |
1660263d2a54
version-etc: match standards.texi style
Eric Blake <ebb9@byu.net>
parents:
11655
diff
changeset
|
253 printf (_("%s home page: <http://www.gnu.org/software/%s/>\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
254 PACKAGE_NAME, PACKAGE); |
12272
1660263d2a54
version-etc: match standards.texi style
Eric Blake <ebb9@byu.net>
parents:
11655
diff
changeset
|
255 #endif |
1660263d2a54
version-etc: match standards.texi style
Eric Blake <ebb9@byu.net>
parents:
11655
diff
changeset
|
256 fputs (_("General help using GNU software: <http://www.gnu.org/gethelp/>\n"), |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12350
diff
changeset
|
257 stdout); |
11073
5d673ad5f710
version-etc: Add emit_bug_reporting_address.
Simon Josefsson <simon@josefsson.org>
parents:
10984
diff
changeset
|
258 } |