diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-04-22 12:53:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-04-22 12:53:32 +0000 |
commit | a707ec7ca3ef932ab8d1ba8caf1d14ee22fa21e2 (patch) | |
tree | 2aff3f5b090bde0262d7aa57a531b2318e9e3768 /scripts/config/zconf.y | |
parent | a6503733c948b02462b6468a4200742c9d9b3b88 (diff) | |
download | upstream-a707ec7ca3ef932ab8d1ba8caf1d14ee22fa21e2.tar.gz upstream-a707ec7ca3ef932ab8d1ba8caf1d14ee22fa21e2.tar.bz2 upstream-a707ec7ca3ef932ab8d1ba8caf1d14ee22fa21e2.zip |
scripts/config: warn on deprected "depends" syntax instead of throwing a syntax error
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36375 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/config/zconf.y')
-rw-r--r-- | scripts/config/zconf.y | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/config/zconf.y b/scripts/config/zconf.y index c4de6299e9..d9a9f62cb0 100644 --- a/scripts/config/zconf.y +++ b/scripts/config/zconf.y @@ -430,6 +430,10 @@ depends: T_DEPENDS T_ON expr T_EOL { menu_add_dep($3); printd(DEBUG_PARSE, "%s:%d:depends on\n", zconf_curname(), zconf_lineno()); +} | T_DEPENDS expr T_EOL +{ + menu_add_dep($2); + zconfprint("warning: deprecated 'depends' syntax, use 'depends on' instead."); }; /* visibility option */ |