summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
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