]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
ylwrap patch from Ian
authorTom Tromey <tromey@redhat.com>
Tue, 5 Aug 1997 23:41:33 +0000 (23:41 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 5 Aug 1997 23:41:33 +0000 (23:41 +0000)
ChangeLog
lib/ylwrap
ylwrap

index 4c89e96874bda3438048d4afc54ea2775d00147f..39074a8c6bc98e07fe9329b62f90456aa033ddad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index b37f2cd37b197fc7fcbf3482472719aa7708bb06..b5b62184383c4f72e341c83723f41ec81a4536fd 100755 (executable)
 # 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"
diff --git a/ylwrap b/ylwrap
index b37f2cd37b197fc7fcbf3482472719aa7708bb06..b5b62184383c4f72e341c83723f41ec81a4536fd 100755 (executable)
--- a/ylwrap
+++ b/ylwrap
 # 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"