summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1997-08-05 23:41:33 +0000
committerTom Tromey <tromey@redhat.com>1997-08-05 23:41:33 +0000
commitd3db859ca16758539421cee7f52ae2675cfa2526 (patch)
tree8a6b6cc5f3204d9e62cd44239de079b6900a5131
parent4753666669db4dcfd9671cbb57458f0b8b23d3c2 (diff)
downloadautomake-d3db859ca16758539421cee7f52ae2675cfa2526.tar.gz
ylwrap patch from Ian
-rw-r--r--ChangeLog5
-rwxr-xr-xlib/ylwrap5
-rwxr-xr-xylwrap5
3 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4c89e9687..39074a8c6 100644
--- 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
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"
diff --git a/ylwrap b/ylwrap
index b37f2cd37..b5b621843 100755
--- a/ylwrap
+++ b/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"