diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-04-22 12:53:32 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-04-22 12:53:32 +0000 |
commit | d72f255a4616f31daa7aa8fdb738e78de43d078d (patch) | |
tree | 2aff3f5b090bde0262d7aa57a531b2318e9e3768 /scripts/config/zconf.y | |
parent | c0bcd44660e5ff27068bbcc1a5e3ee5f2483a9c3 (diff) |
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 */ |