55 lines
2.1 KiB
Diff
55 lines
2.1 KiB
Diff
--- origsrc/gettext-tools/misc/autopoint.in 2022-10-09 14:52:03.000000000 -0600
|
|
+++ src/gettext-tools/misc/autopoint.in 2022-10-29 11:53:55.388261300 -0600
|
|
@@ -193,9 +193,9 @@ Options:
|
|
--version print version information and exit
|
|
-f, --force force overwriting of files that already exist
|
|
-n, --dry-run print modifications but don't perform them"
|
|
-# echo "\
|
|
-# -V version copy the infrastructure of the specified gettext version
|
|
-# (dangerous)"
|
|
+ echo "\
|
|
+ -V version copy the infrastructure of the specified gettext version
|
|
+ (dangerous)"
|
|
echo "
|
|
Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext>
|
|
or by email to <bug-gettext@gnu.org>."
|
|
@@ -255,17 +255,17 @@ func_fatal_error ()
|
|
force=yes ;;
|
|
--help | --hel | --he | --h )
|
|
func_usage; exit 0 ;;
|
|
-# -V ) # Some people put a space between -V and the version number.
|
|
-# shift
|
|
-# if test $# = 0; then
|
|
-# func_usage 1>&2
|
|
-# exit 1
|
|
-# fi
|
|
-# ver=$1;
|
|
-# shift ;;
|
|
-# -V*) # Some people omit the space between -V and the version number.
|
|
-# ver=`echo "X$1" | sed -e 's/^X-V//'`
|
|
-# shift ;;
|
|
+ -V ) # Some people put a space between -V and the version number.
|
|
+ shift
|
|
+ if test $# = 0; then
|
|
+ func_usage 1>&2
|
|
+ exit 1
|
|
+ fi
|
|
+ ver=$1;
|
|
+ shift ;;
|
|
+ -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
|
|
@@ -365,7 +365,7 @@ fi
|
|
if test -n "$xver"; then
|
|
if test -n "$ver"; then
|
|
if test "X$ver" != "X$xver"; then
|
|
- func_fatal_error "Version mismatch: specified -V $ver but the package uses gettext version $xver"
|
|
+ echo "autopoint: warning: Version mismatch: specified -V $ver but the package uses gettext version $xver. Forcibly upgrading to $ver" 1>&2
|
|
fi
|
|
else
|
|
ver="$xver"
|
|
|