]> git.lyx.org Git - lyx.git/blobdiff - m4/po.m4
simpolify ControlCharacter a bit
[lyx.git] / m4 / po.m4
index f2795eea0ca42665ceedb08f4dd90f79c25bfe1f..1a5353681edc43cf45ff29a62692260fb0571a94 100644 (file)
--- a/m4/po.m4
+++ b/m4/po.m4
@@ -114,6 +114,13 @@ AC_DEFUN([AM_PO_SUBDIRS],
           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"
           POMAKEFILEDEPS="POTFILES.in"
+          # Remove POTFILES.in if it is empty, such that it can be
+          # correctly rebuilt later.
+          if test -s "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
+            : ;
+          else
+            rm -f "$ac_given_srcdir/$ac_dir/POTFILES.in"  
+          fi
           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
           # on $ac_dir but don't depend on user-specified configuration
           # parameters.