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 | 45339e03de2f935ab62fc926dd0bb37effac510e (patch) | |
tree | 7d5306a43ca0dbb8160e51951d2c8d546ee2b528 /scripts/config/zconf.y | |
parent | cd35ea21748ce02000598c7ea1dc73450b97fc13 (diff) | |
download | upstream-45339e03de2f935ab62fc926dd0bb37effac510e.tar.gz upstream-45339e03de2f935ab62fc926dd0bb37effac510e.tar.bz2 upstream-45339e03de2f935ab62fc926dd0bb37effac510e.zip |
scripts/config: warn on deprected "depends" syntax instead of throwing a syntax error
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36375
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 */ |