From: Stefano Zacchiroli Date: Wed, 8 Feb 2006 12:33:08 +0000 (+0000) Subject: - removed old commented code X-Git-Tag: 0.4.95@7852~1695 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=4ef3c140d344a89501def0ac92da9f9e895d1284;p=helm.git - removed old commented code - added copyright notice --- diff --git a/matita/help/C/split.ml b/matita/help/C/split.ml index d20e4aea8..1881a365c 100755 --- a/matita/help/C/split.ml +++ b/matita/help/C/split.ml @@ -1,4 +1,28 @@ #!/usr/bin/ocamlrun /usr/bin/ocaml +(* Copyright (C) 2006, HELM Team. + * + * This file is part of HELM, an Hypertextual, Electronic + * Library of Mathematics, developed at the Computer Science + * Department, University of Bologna, Italy. + * + * HELM is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * HELM is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with HELM; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + * + * For details, see the HELM World-Wide-Web page, + * http://helm.cs.unibo.it/ + *) let fname = try Sys.argv.(1) @@ -116,23 +140,6 @@ let patch_toc sec_ids id2sec toc = with Not_found -> ()) toc -(* let a_s = Pxp_document.find_all ~deeply:true (match_elt "a" "href" ()) toc in - List.iter - (fun (node: 'a node) -> - let href = node#required_string_attribute "href" in - assert (String.length href > 0); - if href.[0] = '#' then - let xref = String.sub href 1 (String.length href - 1) in - if List.mem xref sec_ids then - node#set_attribute "href" (Pxp_types.Value (fname_of_sec xref)) - else - try - let sec = Hashtbl.find id2sec xref in - node#set_attribute "href" - (Pxp_types.Value (fname_of_sec sec ^ "#" ^ xref)) - with Not_found -> ()) - a_s *) - let patch_sec sec_ids id2sec sec = let sec_name = get_sec_name sec in iter_xrefs