From f6925ebc0f5895463832aa2535c20b3f1f13b19c Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 30 Nov 2010 13:21:50 +0100 Subject: [PATCH] cfgapply: also handle non-set commands --- misc/tools/cfgapply.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/tools/cfgapply.pl b/misc/tools/cfgapply.pl index 822246ab..e714bc5d 100644 --- a/misc/tools/cfgapply.pl +++ b/misc/tools/cfgapply.pl @@ -11,8 +11,9 @@ while(<>) { chomp; s/\r//g; + s/\/\/.*//; - if(/^\s*(?:set\s+|seta\s+)(\S+)/) + if(/^\s*(?:set\s+|seta\s+|)(\S+)/) { if(exists $cvar2line{$1}) { -- 2.39.2