Commits

pkaufman  committed 4d79524

added support for comments in config file

  • Participants
  • Parent commits a389d4a

Comments (0)

Files changed (1)

File wsol/Extra.fs

     let name = cwd + "\\..\\..\\extra.files"
     let dest =  cwd + "\\..\\html\\"
     if System.IO.File.Exists name then
-        System.IO.File.ReadAllText name
+        System.IO.File.ReadAllLines name
+        |> Array.filter (fun l -> l.IndexOf("//") <> 0) // filter out comments first
+        |> String.concat "\n" // put the rest back together
         |> parse cwd
         |> List.iter (fun x -> (copy (dest + System.IO.Path.GetFileName (GetName x))) x)