[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo update (Wed May 25 05:22:01 EDT 2005)
From: |
Karl Berry |
Subject: |
texinfo update (Wed May 25 05:22:01 EDT 2005) |
Date: |
Wed, 25 May 2005 05:22:19 -0400 |
Index: ChangeLog
===================================================================
RCS file: /cvsroot/texinfo/texinfo/ChangeLog,v
retrieving revision 1.504
retrieving revision 1.505
diff -c -r1.504 -r1.505
*** ChangeLog 24 May 2005 12:33:39 -0000 1.504
--- ChangeLog 25 May 2005 09:13:21 -0000 1.505
***************
*** 1,3 ****
--- 1,8 ----
+ 2005-05-25 Stepan Kasal <address@hidden>
+
+ * util/texi2dvi (findprog): Rewrite the test for an executable
+ again, per suggestion of Eric Blake. Restore IFS earlier.
+
2005-05-24 Stepan Kasal <address@hidden>
* util/texi2dvi (findprog): Rewrite the test for an executable and
Index: util/texi2dvi
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.51
retrieving revision 1.52
diff -c -r1.51 -r1.52
*** util/texi2dvi 24 May 2005 12:33:40 -0000 1.51
--- util/texi2dvi 25 May 2005 09:13:24 -0000 1.52
***************
*** 1,6 ****
#! /bin/sh
# texi2dvi --- produce DVI (or PDF) files from Texinfo (or LaTeX) sources.
! # $Id: texi2dvi,v 1.51 2005/05/24 12:33:40 kasal Exp $
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001,
# 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
--- 1,6 ----
#! /bin/sh
# texi2dvi --- produce DVI (or PDF) files from Texinfo (or LaTeX) sources.
! # $Id: texi2dvi,v 1.52 2005/05/25 09:13:24 kasal Exp $
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001,
# 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
***************
*** 32,38 ****
unset RUNNING_KSH
# This string is expanded by rcs automatically when this file is checked out.
! rcs_revision='$Revision: 1.51 $'
rcs_version=`set - $rcs_revision; echo $2`
program=`echo $0 | sed -e 's!.*/!!'`
version="texi2dvi (GNU Texinfo 4.8) $rcs_version
--- 32,38 ----
unset RUNNING_KSH
# This string is expanded by rcs automatically when this file is checked out.
! rcs_revision='$Revision: 1.52 $'
rcs_version=`set - $rcs_revision; echo $2`
program=`echo $0 | sed -e 's!.*/!!'`
version="texi2dvi (GNU Texinfo 4.8) $rcs_version
***************
*** 130,149 ****
saveIFS=$IFS
IFS=$path_sep # break path components at the path separator
for dir in $PATH; do
# The basic test for an executable is `test -f $f && test -x $f'.
! # `test -x' is not enough, because it can also be true for directories.
#
! # On Cygwin and DJGPP, `test -x' also looks for .exe. On Cygwin, also
! # `test -f' has this enhancement, bot not on DJGPP. (Both are design
! # decisions, so there is little chance to make them consistent.)
! # Thus we have to try `test -f' twice.
! if test -x "$dir/$1" &&
! { test -f "$dir/$1" || test -f "$dir/$1.exe"; }; then
foundprog=true
break
fi
done
- IFS=$saveIFS
$foundprog
}
--- 130,151 ----
saveIFS=$IFS
IFS=$path_sep # break path components at the path separator
for dir in $PATH; do
+ IFS=$saveIFS
# The basic test for an executable is `test -f $f && test -x $f'.
! # (`test -x' is not enough, because it can also be true for directories.)
! # We have to try this both for $1 and $1.exe.
#
! # Note: On Cygwin and DJGPP, `test -x' also looks for .exe. On Cygwin,
! # also `test -f' has this enhancement, bot not on DJGPP. (Both are
! # design decisions, so there is little chance to make them consistent.)
! # Thusly, it seems to be difficult to make use of these enhancements.
! #
! if { test -f "$dir/$1" && test -x "$dir/$1"; } ||
! { test -f "$dir/$1.exe" && test -x "$dir/$1.exe"; }; then
foundprog=true
break
fi
done
$foundprog
}
P ChangeLog
P util/texi2dvi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo update (Wed May 25 05:22:01 EDT 2005),
Karl Berry <=