caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Thomas Gazagnaire <thomas@ocamlpro.com>
To: Dario Teixeira <darioteixeira@yahoo.com>
Cc: OCaml mailing-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Creating fresh OPAM repository
Date: Tue, 11 Dec 2012 16:55:52 +0100	[thread overview]
Message-ID: <7EB8D7B0-DC57-435C-A08A-6FB9E2DF27E0@ocamlpro.com> (raw)
In-Reply-To: <1355238394.35085.YahooMailNeo@web120401.mail.ne1.yahoo.com>

Hi Dario,

> How does one create a fresh repository with OPAM?  The documentation has plenty
> of examples of cloning existing repos, but what I want is to start an empty one on the
> local filesystem.  Does the OPAM tool have some option for this, or is one supposed
> to do it "by hand", ie, create a filesystem structure that mimics existing repos?

If you want to start an empty local repository in /foo/bar, just run:

$ opam remote local /foo/bar

(you can replace 'local' by any other name in the previous commands, it's just a way to identify the repository)

After that, you can:
* either populate it incrementally by adding the usual '/foo/bar/packages/NAME.VERSION/{opam,url,descr}' for package descriptions and '/foo/bar/compilers/VERSION+NAME.comp' for  compiler description. Don't forget to update your repository by doing 'opam update local' to take these changes into account; or
* use 'opam upload'. This is however not yet tested as well as the first solution. If you use it and found some issues, please do not hesitate to fill a bug.

--
Thomas


  reply	other threads:[~2012-12-11 15:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11 15:06 Dario Teixeira
2012-12-11 15:55 ` Thomas Gazagnaire [this message]
2012-12-11 16:31   ` Dario Teixeira
2012-12-11 16:48     ` Anil Madhavapeddy
2012-12-11 16:52       ` Thomas Gazagnaire
2012-12-11 18:40       ` Dario Teixeira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7EB8D7B0-DC57-435C-A08A-6FB9E2DF27E0@ocamlpro.com \
    --to=thomas@ocamlpro.com \
    --cc=caml-list@inria.fr \
    --cc=darioteixeira@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).