+2003-08-11  Bruno Haible  <bruno@clisp.org>
+
+       * autopoint.in: When local files have been modified, create a .diff
+       file for the user's convenience.
+       Suggested by Denis Barbier <barbier@debian.org>.
+
 2003-08-07  Bruno Haible  <bruno@clisp.org>
 
        * autopoint.in: Fix the regular expression used to parse intl/VERSION.
 
 # original - too great risk of version mismatch.
 if test -z "$force"; then
   mismatch=
+  mismatchfile="${TMPDIR-/tmp}"/autopoint$$.diff
+  rm -f "$mismatchfile"
   for file in `find "$work_dir/archive" -type f -print | sed -e "s,^$work_dir/archive/,," | LC_ALL=C sort`; do
     func_destfile "$file"
     if test -n "$destfile"; then
         if cmp -s "$work_dir/archive/$file" "$destfile"; then
           :
         else
-          echo "autopoint: File $destfile has been locally modified."
+          echo "autopoint: File $destfile has been locally modified." 1>&2
           mismatch=yes
+          diff -c "$work_dir/archive/$file" "$destfile" | sed -e "1s,$work_dir/archive/,," >> "$mismatchfile"
         fi
       fi
     fi
   done
   if test -n "$mismatch"; then
     rm -rf "$cvs_dir" "$work_dir"
-    func_fatal_error "Some files have been locally modified. Not overwriting them because --force has not been specified."
+    func_fatal_error "Some files have been locally modified. Not overwriting them because --force has not been specified. For your convenience, you find the local modifications in the file '$mismatchfile'."
   fi
 fi