This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: patch for ylwrap
- To: binutils@sourceware.cygnus.com
- Subject: Re: patch for ylwrap
- From: "Mark E." <snowball3@bigfoot.com>
- Date: Fri, 11 Jun 1999 14:56:24 -0400
> The patch lets ylwrap accept filenames without regard to the directory
> separator is used.
>
I'm building for i386-pc-msdosdjgpp with a three day old version of
binutils from CVS.
The first version of the patch didn't go far enough. Here's a revised
version:
*** ylwrap.orig Mon May 3 03:28:40 1999
--- ylwrap Fri Jun 11 14:47:00 1999
***************
*** 31,37 ****
shift
# Make any relative path in $prog absolute.
case "$prog" in
! /* | [A-Za-z]:\\*) ;;
*/*) prog="`pwd`/$prog" ;;
esac
--- 31,37 ----
shift
# Make any relative path in $prog absolute.
case "$prog" in
! /* | [A-Za-z]:*) ;;
*/*) prog="`pwd`/$prog" ;;
esac
***************
*** 39,45 ****
input="$1"
shift
case "$input" in
! /* | [A-Za-z]:\\*)
# Absolute path; do nothing.
;;
*)
--- 39,45 ----
input="$1"
shift
case "$input" in
! /* | [A-Za-z]:*)
# Absolute path; do nothing.
;;
*)
***************
*** 75,81 ****
cd $dirname
case "$input" in
! /* | [A-Za-z]:\\*)
# Absolute path; do nothing.
;;
*)
--- 75,81 ----
cd $dirname
case "$input" in
! /* | [A-Za-z]:*)
# Absolute path; do nothing.
;;
*)
***************
*** 95,101 ****
# If $2 is an absolute path name, then just use that,
# otherwise prepend `../'.
case "$2" in
! /* | [A-Za-z]:\\*) target="$2";;
*) target="../$2";;
esac
mv "$1" "$target" || status=$?
--- 95,101 ----
# If $2 is an absolute path name, then just use that,
# otherwise prepend `../'.
case "$2" in
! /* | [A-Za-z]:*) target="$2";;
*) target="../$2";;
esac
mv "$1" "$target" || status=$?
However, even after correcting those, make still stops:
C:/DJGPP/BIN/make.exe all-recursive
make.exe[1]: Entering directory `c:/djgpp/cvs/binutils/binutils'
Making all in po
make.exe[2]: Entering directory `c:/djgpp/cvs/binutils/binutils/po'
make.exe[2]: Nothing to be done for `all'.
make.exe[2]: Leaving directory `c:/djgpp/cvs/binutils/binutils/po'
make.exe[2]: Entering directory `c:/djgpp/cvs/binutils/binutils'
C:/DJGPP/BIN/sh.exe ./../ylwrap "`if [ -f ../bison/bison ] ; then echo
../bison/bison -y -L./../bison/ ; else echo bison -y ; fi`" arparse.y y.tab.c
arparse.c y.tab.h arparse.h -- -d
C:/DJGPP/BIN/bison.exe: arparse.y: No such file or directory (ENOENT)
make.exe[2]: *** [arparse.c] Error 1
make.exe[2]: Leaving directory `c:/djgpp/cvs/binutils/binutils'
make.exe[1]: *** [all-recursive] Error 1
make.exe[1]: Leaving directory `c:/djgpp/cvs/binutils/binutils'
make.exe: *** [all-recursive-am] Error 2
arparse.y is there, but somehow isn't being found. What's going on?
Mark
---
Mark Elbrecht, snowball3@bigfoot.com
http://snowball.frogspace.net/