]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
cfgapply: also handle non-set commands
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 30 Nov 2010 12:21:50 +0000 (13:21 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 30 Nov 2010 12:21:50 +0000 (13:21 +0100)
misc/tools/cfgapply.pl

index 822246ab07191ef5cfcd86762301eb601310db2e..e714bc5d18ae66e3da0eeb8dbe31614cfafbc4c4 100644 (file)
@@ -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})
                {