Hi all,

I've checked in the attached patch, coming from the gcj mailing list,
that was OK-ed by Tom Tromey in the mail here:

http://article.gmane.org/gmane.comp.gcc.patches/124653

but hasn't been checked in yet.

2006-11-26  Roger Sayle  <roger <at> eyesopen.com>
           Ian Lance Taylor  <ian <at> airs.com>
           Paolo Bonzini <bonzini <at> gnu.org>

       Fixes bug #25557.

       * lib/gen-classlist.sh.in:  Avoid using test's -ef operator for
       increased portability.  Likewise, use -f instead of -e.

cheers,
dalibor topic
Index: lib/gen-classlist.sh.in
===================================================================
RCS file: /sources/classpath/classpath/lib/gen-classlist.sh.in,v
retrieving revision 1.38
diff -u -r1.38 gen-classlist.sh.in
--- lib/gen-classlist.sh.in	30 Jun 2006 11:39:15 -0000	1.38
+++ lib/gen-classlist.sh.in	26 Nov 2006 22:57:30 -0000
@@ -55,7 +55,9 @@
 done
 
 # Only include generated files once.
-if test ! "${top_builddir}" -ef "@top_srcdir@"; then
+abs_top_builddir=`cd "${top_builddir}"; pwd`
+abs_top_srcdir=`cd "@top_srcdir@"; pwd`
+if test "$abs_top_builddir" != "$abs_top_srcdir"; then
   echo "Adding generated files in builddir '${top_builddir}'."
   # Currently the only generated files are in gnu.*.
   (cd ${top_builddir}; @FIND@ gnu -follow -name '*.java' -print) |
@@ -95,7 +97,7 @@
 rm tmp.omit
 
 new=
-if test -e ${top_builddir}/lib/classes.2; then
+if test -f ${top_builddir}/lib/classes.2; then
   p=`diff ${top_builddir}/lib/classes.2 ${top_builddir}/lib/classes.1`
   if test "$p" != ""; then
     new="true"

Reply via email to