Bummer! This one was really really stupid!
Index: ChangeLog
from Akim Demaille <[EMAIL PROTECTED]>
* util/texi2dvi: Be sure to return to the current directory even
after obeying --clean.
Index: util/texi2dvi
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.60
diff -u -u -u -r1.60 texi2dvi
--- util/texi2dvi 5 Sep 2005 13:46:15 -0000 1.60
+++ util/texi2dvi 20 Sep 2005 08:32:06 -0000
@@ -1023,18 +1063,20 @@
# and TeX one last time.
run_thumbpdf
- # Return to the original directory so that
- # - the next file is processed in correct conditions
- # - the temporary file can be removed
- cd / # in case $orig_pwd is on a different drive (for DOS)
- cd "$orig_pwd" || exit 1
+ # Both to make sure we can remove $t2ddir (we might have cd'd into
+ # it), and in case $orig_pwd is on a different drive (for DOS).
+ cd /
# Remove temporary files.
if $clean; then
verbose "Removing $t2ddir"
- cd /
rm -rf "$t2ddir"
fi
+
+ # Return to the original directory so that
+ # - the next file is processed in correct conditions
+ # - the temporary file can be removed
+ cd "$orig_pwd" || exit 1
done
verbose "done."
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-texinfo