diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..01d6f4b --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,24 @@ +How to release a new version +============================ + +Suppose you want to releave version 0.10.0: + +* edit src/opambinGlobals.ml and change `version` to "0.10.0" +* commit: +``` +git commit -a -m "version 0.10.0" +``` +* push: +``` +git push +``` +* Go to github.com and merge +* Draft a new release: + v0.10.0 + Version 0.10.0 +* Go in opam-bin-repository + ./scripts/new-opam-bin.sh 0.10.0 +* Commit and push + git commit -a -m "add opam-bin.0.10.0" + git push +* You may also want to create a new binary archive for this version diff --git a/dune b/dune new file mode 100644 index 0000000..421c688 --- /dev/null +++ b/dune @@ -0,0 +1 @@ +(data_only_dirs test) diff --git a/src/opambinCommandPreInstall.ml b/src/opambinCommandPreInstall.ml index 42165bd..eddccf2 100644 --- a/src/opambinCommandPreInstall.ml +++ b/src/opambinCommandPreInstall.ml @@ -43,6 +43,9 @@ let action args = OpambinMisc.make_cache_dir (); match args with | name :: _version :: _depends :: [] -> + let marker_dir = OpambinGlobals.opambin_switch_temp_dir () in + if not ( Sys.file_exists marker_dir ) then + EzFile.make_dir marker_dir; List.iter (fun (marker, backup) -> if Sys.file_exists marker then Sys.rename marker ( backup ~name ) diff --git a/src/opambinGlobals.ml b/src/opambinGlobals.ml index 60d8404..02094ad 100644 --- a/src/opambinGlobals.ml +++ b/src/opambinGlobals.ml @@ -11,7 +11,7 @@ open EzFile.OP let command = "opam-bin" -let version = "0.9.0" +let version = "0.9.1" let about = Printf.sprintf "%s %s by OCamlPro SAS " command version