po.m4 (flex-2.6.3) | : | po.m4 (flex-2.6.4) | ||
---|---|---|---|---|
# po.m4 serial 22 (gettext-0.19) | # po.m4 serial 17 (gettext-0.18) | |||
dnl Copyright (C) 1995-2014 Free Software Foundation, Inc. | dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. | |||
dnl This file is free software; the Free Software Foundation | dnl This file is free software; the Free Software Foundation | |||
dnl gives unlimited permission to copy and/or distribute it, | dnl gives unlimited permission to copy and/or distribute it, | |||
dnl with or without modifications, as long as this notice is preserved. | dnl with or without modifications, as long as this notice is preserved. | |||
dnl | dnl | |||
dnl This file can can be used in projects which are not available under | dnl This file can can be used in projects which are not available under | |||
dnl the GNU General Public License or the GNU Library General Public | dnl the GNU General Public License or the GNU Library General Public | |||
dnl License but which still want to provide support for the GNU gettext | dnl License but which still want to provide support for the GNU gettext | |||
dnl functionality. | dnl functionality. | |||
dnl Please note that the actual code of the GNU gettext library is covered | dnl Please note that the actual code of the GNU gettext library is covered | |||
dnl by the GNU Library General Public License, and the rest of the GNU | dnl by the GNU Library General Public License, and the rest of the GNU | |||
dnl gettext package package is covered by the GNU General Public License. | dnl gettext package package is covered by the GNU General Public License. | |||
dnl They are *not* in the public domain. | dnl They are *not* in the public domain. | |||
dnl Authors: | dnl Authors: | |||
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | |||
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | |||
AC_PREREQ([2.60]) | AC_PREREQ([2.50]) | |||
dnl Checks for all prerequisites of the po subdirectory. | dnl Checks for all prerequisites of the po subdirectory. | |||
AC_DEFUN([AM_PO_SUBDIRS], | AC_DEFUN([AM_PO_SUBDIRS], | |||
[ | [ | |||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |||
AC_REQUIRE([AC_PROG_INSTALL])dnl | AC_REQUIRE([AC_PROG_INSTALL])dnl | |||
AC_REQUIRE([AC_PROG_MKDIR_P])dnl | AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake | |||
AC_REQUIRE([AC_PROG_SED])dnl | ||||
AC_REQUIRE([AM_NLS])dnl | AC_REQUIRE([AM_NLS])dnl | |||
dnl Release version of the gettext macros. This is used to ensure that | dnl Release version of the gettext macros. This is used to ensure that | |||
dnl the gettext macros and po/Makefile.in.in are in sync. | dnl the gettext macros and po/Makefile.in.in are in sync. | |||
AC_SUBST([GETTEXT_MACRO_VERSION], [0.19]) | AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) | |||
dnl Perform the following tests also if --disable-nls has been given, | dnl Perform the following tests also if --disable-nls has been given, | |||
dnl because they are needed for "make dist" to work. | dnl because they are needed for "make dist" to work. | |||
dnl Search for GNU msgfmt in the PATH. | dnl Search for GNU msgfmt in the PATH. | |||
dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. | dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. | |||
dnl The second test excludes FreeBSD msgfmt. | dnl The second test excludes FreeBSD msgfmt. | |||
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | |||
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | |||
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/ dev/null; then exit 1; else exit 0; fi)], | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/ dev/null; then exit 1; else exit 0; fi)], | |||
skipping to change at line 106 | skipping to change at line 105 | |||
AC_CONFIG_COMMANDS([po-directories], [[ | AC_CONFIG_COMMANDS([po-directories], [[ | |||
for ac_file in $CONFIG_FILES; do | for ac_file in $CONFIG_FILES; do | |||
# Support "outfile[:infile[:infile...]]" | # Support "outfile[:infile[:infile...]]" | |||
case "$ac_file" in | case "$ac_file" in | |||
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |||
esac | esac | |||
# PO directories have a Makefile.in generated from Makefile.in.in. | # PO directories have a Makefile.in generated from Makefile.in.in. | |||
case "$ac_file" in */Makefile.in) | case "$ac_file" in */Makefile.in) | |||
# Adjust a relative srcdir. | # Adjust a relative srcdir. | |||
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |||
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |||
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |||
# In autoconf-2.13 it is called $ac_given_srcdir. | # In autoconf-2.13 it is called $ac_given_srcdir. | |||
# In autoconf-2.50 it is called $srcdir. | # In autoconf-2.50 it is called $srcdir. | |||
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |||
case "$ac_given_srcdir" in | case "$ac_given_srcdir" in | |||
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |||
/*) top_srcdir="$ac_given_srcdir" ;; | /*) top_srcdir="$ac_given_srcdir" ;; | |||
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |||
esac | esac | |||
# Treat a directory as a PO directory if and only if it has a | # Treat a directory as a PO directory if and only if it has a | |||
# POTFILES.in file. This allows packages to have multiple PO | # POTFILES.in file. This allows packages to have multiple PO | |||
# directories under different names or in different locations. | # directories under different names or in different locations. | |||
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |||
rm -f "$ac_dir/POTFILES" | rm -f "$ac_dir/POTFILES" | |||
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo " creating $ac_dir/POTFILES" | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo " creating $ac_dir/POTFILES" | |||
gt_tab=`printf '\t'` | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ] | |||
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${ | *\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_ | |||
gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" | dir/POTFILES" | |||
> "$ac_dir/POTFILES" | ||||
POMAKEFILEDEPS="POTFILES.in" | POMAKEFILEDEPS="POTFILES.in" | |||
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |||
# on $ac_dir but don't depend on user-specified configuration | # on $ac_dir but don't depend on user-specified configuration | |||
# parameters. | # parameters. | |||
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |||
# The LINGUAS file contains the set of available languages. | # The LINGUAS file contains the set of available languages. | |||
if test -n "$OBSOLETE_ALL_LINGUAS"; then | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |||
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure .in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure .in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |||
fi | fi | |||
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/ LINGUAS"` | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/ LINGUAS"` | |||
# Hide the ALL_LINGUAS assignment from automake < 1.5. | # Hide the ALL_LINGUAS assigment from automake < 1.5. | |||
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |||
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |||
else | else | |||
# The set of available languages was given in configure.in. | # The set of available languages was given in configure.in. | |||
# Hide the ALL_LINGUAS assignment from automake < 1.5. | # Hide the ALL_LINGUAS assigment from automake < 1.5. | |||
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |||
fi | fi | |||
# Compute POFILES | # Compute POFILES | |||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |||
# Compute UPDATEPOFILES | # Compute UPDATEPOFILES | |||
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |||
# Compute DUMMYPOFILES | # Compute DUMMYPOFILES | |||
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |||
# Compute GMOFILES | # Compute GMOFILES | |||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |||
skipping to change at line 231 | skipping to change at line 229 | |||
[ | [ | |||
# When this code is run, in config.status, two variables have already been | # When this code is run, in config.status, two variables have already been | |||
# set: | # set: | |||
# - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, | # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, | |||
# - LINGUAS is the value of the environment variable LINGUAS at configure | # - LINGUAS is the value of the environment variable LINGUAS at configure | |||
# time. | # time. | |||
changequote(,)dnl | changequote(,)dnl | |||
# Adjust a relative srcdir. | # Adjust a relative srcdir. | |||
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |||
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |||
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |||
# In autoconf-2.13 it is called $ac_given_srcdir. | # In autoconf-2.13 it is called $ac_given_srcdir. | |||
# In autoconf-2.50 it is called $srcdir. | # In autoconf-2.50 it is called $srcdir. | |||
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |||
case "$ac_given_srcdir" in | case "$ac_given_srcdir" in | |||
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |||
/*) top_srcdir="$ac_given_srcdir" ;; | /*) top_srcdir="$ac_given_srcdir" ;; | |||
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |||
esac | esac | |||
skipping to change at line 259 | skipping to change at line 257 | |||
echo_func () { | echo_func () { | |||
cat <<EOT | cat <<EOT | |||
$* | $* | |||
EOT | EOT | |||
} | } | |||
gt_echo='echo_func' | gt_echo='echo_func' | |||
fi | fi | |||
fi | fi | |||
# A sed script that extracts the value of VARIABLE from a Makefile. | # A sed script that extracts the value of VARIABLE from a Makefile. | |||
tab=`printf '\t'` | ||||
sed_x_variable=' | sed_x_variable=' | |||
# Test if the hold space is empty. | # Test if the hold space is empty. | |||
x | x | |||
s/P/P/ | s/P/P/ | |||
x | x | |||
ta | ta | |||
# Yes it was empty. Look if we have the expected variable definition. | # Yes it was empty. Look if we have the expected variable definition. | |||
/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{ | /^[ ]*VARIABLE[ ]*=/{ | |||
# Seen the first line of the variable definition. | # Seen the first line of the variable definition. | |||
s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=// | s/^[ ]*VARIABLE[ ]*=// | |||
ba | ba | |||
} | } | |||
bd | bd | |||
:a | :a | |||
# Here we are processing a line from the variable definition. | # Here we are processing a line from the variable definition. | |||
# Remove comment, more precisely replace it with a space. | # Remove comment, more precisely replace it with a space. | |||
s/#.*$/ / | s/#.*$/ / | |||
# See if the line ends in a backslash. | # See if the line ends in a backslash. | |||
tb | tb | |||
:b | :b | |||
skipping to change at line 321 | skipping to change at line 318 | |||
fi | fi | |||
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |||
# The LINGUAS file contains the set of available languages. | # The LINGUAS file contains the set of available languages. | |||
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS" ` | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS" ` | |||
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |||
else | else | |||
# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. | # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. | |||
sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/ LINGUAS/g'` | sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/ LINGUAS/g'` | |||
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` | ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` | |||
fi | fi | |||
# Hide the ALL_LINGUAS assignment from automake < 1.5. | # Hide the ALL_LINGUAS assigment from automake < 1.5. | |||
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |||
# Compute POFILES | # Compute POFILES | |||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |||
# Compute UPDATEPOFILES | # Compute UPDATEPOFILES | |||
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |||
# Compute DUMMYPOFILES | # Compute DUMMYPOFILES | |||
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |||
# Compute GMOFILES | # Compute GMOFILES | |||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |||
# Compute PROPERTIESFILES | # Compute PROPERTIESFILES | |||
skipping to change at line 411 | skipping to change at line 408 | |||
JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" | JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" | |||
QTCATALOGS="$QTCATALOGS $lang.qm" | QTCATALOGS="$QTCATALOGS $lang.qm" | |||
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVW XYZ/abcdefghijklmnopqrstuvwxyz/'` | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVW XYZ/abcdefghijklmnopqrstuvwxyz/'` | |||
TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" | TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" | |||
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@lat in$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz -UZ-Latn/'` | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@lat in$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz -UZ-Latn/'` | |||
CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" | CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" | |||
done | done | |||
fi | fi | |||
sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s| @UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@G MOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFI LES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e " s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCA TALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdi r:,distdir:,' < "$ac_file" > "$ac_file.tmp" | sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s| @UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@G MOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFI LES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e " s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCA TALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdi r:,distdir:,' < "$ac_file" > "$ac_file.tmp" | |||
tab=`printf '\t'` | ||||
if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then | if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then | |||
# Add dependencies that cannot be formulated as a simple suffix rule. | # Add dependencies that cannot be formulated as a simple suffix rule. | |||
for lang in $ALL_LINGUAS; do | for lang in $ALL_LINGUAS; do | |||
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVW XYZ/abcdefghijklmnopqrstuvwxyz/'` | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVW XYZ/abcdefghijklmnopqrstuvwxyz/'` | |||
cat >> "$ac_file.tmp" <<EOF | cat >> "$ac_file.tmp" <<EOF | |||
$frobbedlang.msg: $lang.po | $frobbedlang.msg: $lang.po | |||
${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ | @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ | |||
${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f | \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm - | |||
"\$(srcdir)/$frobbedlang.msg"; exit 1; } | f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | |||
EOF | EOF | |||
done | done | |||
fi | fi | |||
if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then | if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then | |||
# Add dependencies that cannot be formulated as a simple suffix rule. | # Add dependencies that cannot be formulated as a simple suffix rule. | |||
for lang in $ALL_LINGUAS; do | for lang in $ALL_LINGUAS; do | |||
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@lat in$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz -UZ-Latn/'` | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@lat in$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz -UZ-Latn/'` | |||
cat >> "$ac_file.tmp" <<EOF | cat >> "$ac_file.tmp" <<EOF | |||
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po | $frobbedlang/\$(DOMAIN).resources.dll: $lang.po | |||
${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r | @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po - | |||
\$(DOMAIN)"; \ | r \$(DOMAIN)"; \ | |||
${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$( | \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$ | |||
DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | (DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | |||
EOF | EOF | |||
done | done | |||
fi | fi | |||
if test -n "$POMAKEFILEDEPS"; then | if test -n "$POMAKEFILEDEPS"; then | |||
cat >> "$ac_file.tmp" <<EOF | cat >> "$ac_file.tmp" <<EOF | |||
Makefile: $POMAKEFILEDEPS | Makefile: $POMAKEFILEDEPS | |||
EOF | EOF | |||
fi | fi | |||
mv "$ac_file.tmp" "$ac_file" | mv "$ac_file.tmp" "$ac_file" | |||
]) | ]) | |||
End of changes. 16 change blocks. | ||||
26 lines changed or deleted | 22 lines changed or added |