summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJohn Beck <John.Beck@Sun.COM>2010-03-05 09:21:47 -0800
committerJohn Beck <John.Beck@Sun.COM>2010-03-05 09:21:47 -0800
commit83d7a2524bdbf7b1da1c47b52bc20eee0f12c60e (patch)
treefb3443d12467815573e0e1f8c3db366030e166d0 /usr/src
parent03f9f63d24f0494b7d47b927090ad9045e396402 (diff)
downloadillumos-joyent-83d7a2524bdbf7b1da1c47b52bc20eee0f12c60e.tar.gz
6932568 build_cscope gets bad directions from IPS exception file, ends up driving around Apple HQ
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/tools/scripts/flg.flp.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/src/tools/scripts/flg.flp.sh b/usr/src/tools/scripts/flg.flp.sh
index c2aa024fb5..40239cf9e7 100644
--- a/usr/src/tools/scripts/flg.flp.sh
+++ b/usr/src/tools/scripts/flg.flp.sh
@@ -20,11 +20,9 @@
# CDDL HEADER END
#
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
-#
#
# Generates the list of source files that would get brought over with the
# specified subtree as a result of inc.flg and req.flg files. If no subtree
@@ -170,6 +168,7 @@ prpath()
while [ "${srcfile##$tree}" = "$srcfile" ]; do
dots=../$dots
tree=`dirname $tree`
+ [ "$tree" = "." ] && break
done
echo ${dots}${srcfile##$tree/}
done