Permalink
Browse files

Create bin, lib, doc, ... when installing a new compiler

  • Loading branch information...
1 parent 4dfd64d commit 17da0bf39e5fe7aa3caa817da401c2e6ecb31cb0 @samoht samoht committed Oct 10, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/opamClient.ml
View
@@ -995,7 +995,15 @@ let init_ocaml t quiet alias compiler =
OpamGlobals.msg "The compiler %s is already installed.\n" (OpamAlias.to_string alias);
OpamGlobals.exit 0;
);
+
OpamFilename.mkdir alias_dir;
+ OpamFilename.mkdir (OpamPath.Alias.lib_dir t.root alias);
+ OpamFilename.mkdir (OpamPath.Alias.build_dir t.root alias);
+ OpamFilename.mkdir (OpamPath.Alias.bin t.root alias);
+ OpamFilename.mkdir (OpamPath.Alias.doc_dir t.root alias);
+ OpamFilename.mkdir (OpamPath.Alias.man_dir t.root alias);
+ OpamFilename.mkdir (OpamPath.Alias.install_dir t.root alias);
+ OpamFilename.mkdir (OpamPath.Alias.config_dir t.root alias);
let comp = OpamFile.Comp.read comp_f in
begin try

0 comments on commit 17da0bf

Please sign in to comment.