scripts/config: support includes relative to the currently processed file
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 12 Dec 2014 12:29:58 +0000 (12:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 12 Dec 2014 12:29:58 +0000 (12:29 +0000)
commit6fa321ff1c2c65534fec999ef7765bc4635c41d0
tree7fee4173095fc5e94b8b8ac4623c91a06dadfc5f
parentf46b02b7116a59eacebcaf8dd7e40d9f84503dae
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