Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-06-12 12:56:55 +0300
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-06-16 12:13:29 +0300
commit2ef3009068568c542cc46ce11ef1477d3a9c826a (patch)
treecb5fa092f0782e32aed24ad5576b001419fe080e /winsup/doc/xidepend
parentefc0b0094ba0bfeb0dea0b20be42d4089bc90fae (diff)
winsup/doc: Fix xidepend to handle relative pathnames
It seems that xidepend doesn't work correctly if we are ./configure'd using a relative pathname to the srcdir: $ make cd ../../../../src/winsup/doc && ./xidepend ../../../../src/winsup/doc/cygwin-ug-net.xml ../../../../src/winsup/doc/cygwin-api.xml >"/wip/cygwin/build/x86_64-unknown-cygwin/winsup/doc/Makefile.dep" grep: ../../../../src/winsup/doc/cygwin-ug-net.xml: No such file or directory grep: ../../../../src/winsup/doc/cygwin-api.xml: No such file or directory Although it might be better to fix this by making xidepend use pathnames, rather than ignoring them and assuming everything is in the current directory... 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * xidepend: Fix to handle relative pathnames. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'winsup/doc/xidepend')
-rwxr-xr-xwinsup/doc/xidepend1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/doc/xidepend b/winsup/doc/xidepend
index d3b233a57..f4766209e 100755
--- a/winsup/doc/xidepend
+++ b/winsup/doc/xidepend
@@ -11,6 +11,7 @@ fi
for f in "$@"
do
+ f=`basename "$f"`
if fgrep -q 'xi:include' "$f"
then
# This file uses XIncludes. Let's chase its deps recursively.