From: Rudolf Polzer Date: Tue, 30 Nov 2010 12:21:50 +0000 (+0100) Subject: cfgapply: also handle non-set commands X-Git-Tag: xonotic-v0.1.0preview~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f6925ebc0f5895463832aa2535c20b3f1f13b19c;p=xonotic%2Fxonotic.git cfgapply: also handle non-set commands --- 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}) {