summaryrefslogtreecommitdiff
path: root/lib
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 /lib
parent4753666669db4dcfd9671cbb57458f0b8b23d3c2 (diff)
downloadautomake-d3db859ca16758539421cee7f52ae2675cfa2526.tar.gz
ylwrap patch from Ian
Diffstat (limited to 'lib')
-rwxr-xr-xlib/ylwrap5
1 files changed, 5 insertions, 0 deletions
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"