12345678910111213141516171819202122232425262728293031323334353637383940414243(* Yoann Padioleau
*
* Copyright (C) 2010 Facebook
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation, with the
* special exception on linking described in file license.txt.
*
* This library 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 file
* license.txt for more details.
*)openCommon(*****************************************************************************)(* Prelude *)(*****************************************************************************)(*
* Many header files in the std C++ library do not have any extension,
* e.g. /usr/include/c++/.../set
* The goal of this module is to produce a CPP_STDLIB directory
* that makes sense for codemap and the other tools we use to
* analyze C++.
*)(*****************************************************************************)(* Entry point *)(*****************************************************************************)letrename_header_std_filesdir=letfiles=Common.files_of_dir_or_files_no_vcs_nofilter[dir]infiles|>List.iter(funfile->matchCommon2.dbe_of_filename_safefilewith|Common2.Left_->()|Common2.Right(_dir,_file)->letcmd=spf"mv %s %s"file(file^".hpp")inCommon2.command2_y_or_no_exit_if_nocmd)