scripts/config: support includes relative to the currently processed file
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Dec 2014 12:29:58 +0000 (12:29 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Dec 2014 12:29:58 +0000 (12:29 +0000)
commit52a99558c7101c9558deb58fe10de871ce843b56
tree7fee4173095fc5e94b8b8ac4623c91a06dadfc5f
parentd14661658e4174ed8230230aaf3110edbd5d2456
scripts/config: support includes relative to the currently processed file

When the initial glob() attempt on a path specified with "source" statement
yields no result, then retry the globbing on the same path with the directory
part of the currently processed file prepended.

This allows us to reference Config.in files relative to their parent instead
of relative to the top dir.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43652 3c298f89-4303-0410-b956-a3cf2f4a3e73
scripts/config/zconf.l
scripts/config/zconf.lex.c_shipped