src/Pure/Tools/build.ML
changeset 56612 74851ff86180
parent 56533 cd8b6d849b6a
child 56614 d80f43dab30e
--- a/src/Pure/Tools/build.ML	Thu Apr 17 11:13:30 2014 +0200
+++ b/src/Pure/Tools/build.ML	Thu Apr 17 11:29:15 2014 +0200
@@ -140,13 +140,6 @@
 
       val _ = Options.set_default options;
 
-      val document_variants =
-        map Present.read_variant (space_explode ":" (Options.string options "document_variants"));
-      val _ =
-        (case duplicates (op =) (map fst document_variants) of
-          [] => ()
-        | dups => error ("Duplicate document variants: " ^ commas_quote dups));
-
       val _ = writeln ("\fSession.name = " ^ name);
       val _ =
         Session.init do_output
@@ -155,7 +148,7 @@
           (Options.string options "document")
           (Options.bool options "document_graph")
           (Options.string options "document_output")
-          document_variants
+          (Present.document_variants (Options.string options "document_variants"))
           (map (pairself Path.explode) document_files)
           parent_name (chapter, name)
           verbose;