version 1.1.1.1, 2012/02/21 22:57:49
|
version 1.1.1.2, 2012/05/29 09:29:44
|
Line 1
|
Line 1
|
# po.m4 serial 17 (gettext-0.18) | # po.m4 serial 17a |
dnl Copyright (C) 1995-2009 Free Software Foundation, Inc. | dnl Copyright (C) 1995-2011 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. |
Line 29 AC_DEFUN([AM_PO_SUBDIRS],
|
Line 29 AC_DEFUN([AM_PO_SUBDIRS],
|
|
|
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.17]) | 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. |
Line 118 changequote([,])dnl
|
Line 118 changequote([,])dnl
|
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" |
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | gt_tab=`printf '\t'` |
| cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$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 |
Line 254 EOT
|
Line 255 EOT
|
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 |
Line 261 s/P/P/
|
Line 263 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. |
/^[ ]*VARIABLE[ ]*=/{ | /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{ |
# Seen the first line of the variable definition. |
# Seen the first line of the variable definition. |
s/^[ ]*VARIABLE[ ]*=// | s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=// |
ba |
ba |
} |
} |
bd |
bd |
Line 405 changequote([,])dnl
|
Line 407 changequote([,])dnl
|
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|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$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|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,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|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$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|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,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/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
cat >> "$ac_file.tmp" <<EOF |
cat >> "$ac_file.tmp" <<EOF |
$frobbedlang.msg: $lang.po |
$frobbedlang.msg: $lang.po |
@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ | ${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ |
\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } |
EOF |
EOF |
done |
done |
fi |
fi |
Line 422 EOF
|
Line 425 EOF
|
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-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/@latin$/-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 |
@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ | ${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ |
\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } |
EOF |
EOF |
done |
done |
fi |
fi |