## Makefile for the gettext-tools/man subdirectory of GNU gettext
-## Copyright (C) 2001-2003, 2006-2007, 2013-2015, 2018 Free Software Foundation, Inc.
+## Copyright (C) 2001-2003, 2006-2007, 2013-2015, 2018, 2021 Free Software Foundation, Inc.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
$(man_MAN1MISC): help2man $(top_srcdir)/../.version
progname=`echo $@ | sed -e 's/\.in$$//' -e 's/\.1$$//'`; \
- IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" \
+ if test "$$progname" = autopoint; then option='--version-option=--version-without-config'; else option=''; fi; \
+ IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN) $$option" \
../misc/$${progname}$(EXEEXT) $(srcdir)/$${progname}.x $@
gettextize.1: gettextize.x ../misc/gettextize.in
#! /bin/sh
#
-# Copyright (C) 2002-2020 Free Software Foundation, Inc.
+# Copyright (C) 2002-2021 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
or by email to <bug-gettext@gnu.org>."
}
-# func_version
+# func_version include_config_details
# outputs to stdout the --version message.
+# Inputs:
+# - include_config_details true or false
func_version ()
{
echo "$progname (GNU $package) $version"
- echo "Uses a versions archive in @ARCHIVE_FORMAT@ format."
- echo "Copyright (C) 2002-2020 Free Software Foundation, Inc.
+ if $1; then
+ echo "This binary is configured to use a versions archive in @ARCHIVE_FORMAT@ format."
+ echo
+ fi
+ echo "Copyright (C) 2002-2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law."
# -V*) # Some people omit the space between -V and the version number.
# ver=`echo "X$1" | sed -e 's/^X-V//'`
# shift ;;
+ --version-without-config )
+ # Print version output without build dependent details.
+ func_version false
+ exit 0 ;;
--version | --versio | --versi | --vers | --ver | --ve | --v )
- func_version
+ func_version true
exit 0 ;;
-- ) # Stop option prcessing
shift; break ;;