diff options
author | Tom Tromey <tromey@redhat.com> | 1997-08-05 23:41:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1997-08-05 23:41:33 +0000 |
commit | d3db859ca16758539421cee7f52ae2675cfa2526 (patch) | |
tree | 8a6b6cc5f3204d9e62cd44239de079b6900a5131 | |
parent | 4753666669db4dcfd9671cbb57458f0b8b23d3c2 (diff) | |
download | automake-d3db859ca16758539421cee7f52ae2675cfa2526.tar.gz |
ylwrap patch from Ian
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | lib/ylwrap | 5 | ||||
-rwxr-xr-x | ylwrap | 5 |
3 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Aug 5 14:08:51 1997 Ian Lance Taylor <ian@cygnus.com> + + * ylwrap: If the program is a relative path, force it to be + absolute. + Tue Aug 5 16:59:41 1997 Tom Tromey <tromey@cygnus.com> * missing: Examine A[CM]_CONFIG_HEADER for name of files to diff --git a/lib/ylwrap b/lib/ylwrap index b37f2cd37..b5b621843 100755 --- a/lib/ylwrap +++ b/lib/ylwrap @@ -29,6 +29,11 @@ # The program to run. prog="$1" shift +# Make any relative path in $prog absolute. +case "$prog" in + /*) ;; + */*) prog="`pwd`/$prog" ;; +esac # The input. input="$1" @@ -29,6 +29,11 @@ # The program to run. prog="$1" shift +# Make any relative path in $prog absolute. +case "$prog" in + /*) ;; + */*) prog="`pwd`/$prog" ;; +esac # The input. input="$1" |