aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/zconf.y
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-04-22 12:53:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-04-22 12:53:32 +0000
commit45339e03de2f935ab62fc926dd0bb37effac510e (patch)
tree7d5306a43ca0dbb8160e51951d2c8d546ee2b528 /scripts/config/zconf.y
parentcd35ea21748ce02000598c7ea1dc73450b97fc13 (diff)
downloadupstream-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.y4
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 */