problem with dejagnu and amd automounter
Joseph H. Buehler
jhpb@sarto.gaithersburg.md.us
Sun Jan 18 05:10:00 GMT 1998
Jeffrey A Law <law@cygnus.com> writes:
> dirname is not really portable. Can you rewrite this using sed?
>
> jeff
Here you go. I did it the same way it was done towards the top of the
existing script.
Joe Buehler
*** runtest Fri Jan 2 17:11:49 1998
--- runtest Sun Jan 18 07:27:46 1998
***************
*** 89,95 ****
#
# which is a very weak assumption
#
! for i in $execpath/../share/dejagnu $execpath/../../share/dejagnu $execpath ; do
if expr $verbose \> 1 > /dev/null ; then
echo Looking for $i/runtest.exp.
fi
--- 89,95 ----
#
# which is a very weak assumption
#
! for i in `echo ${execpath} | sed -e 's@/[^/]*$@/share/dejagnu@'` `echo ${execpath} | sed -e 's@/[^/]*/[^/]*$@/share/dejagnu@'` $execpath ; do
if expr $verbose \> 1 > /dev/null ; then
echo Looking for $i/runtest.exp.
fi
More information about the Gcc-bugs
mailing list