From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id C369F800BE for ; Sun, 8 Jan 2017 00:46:15 +0100 (CET) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=paurkedal@gmail.com; spf=Pass smtp.mailfrom=paurkedal@gmail.com; spf=None smtp.helo=postmaster@mail-qt0-f182.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of paurkedal@gmail.com) identity=pra; client-ip=209.85.216.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="paurkedal@gmail.com"; x-sender="paurkedal@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of paurkedal@gmail.com designates 209.85.216.182 as permitted sender) identity=mailfrom; client-ip=209.85.216.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="paurkedal@gmail.com"; x-sender="paurkedal@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-qt0-f182.google.com) identity=helo; client-ip=209.85.216.182; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="paurkedal@gmail.com"; x-sender="postmaster@mail-qt0-f182.google.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AznVStxOYQcpl+OjHAvsl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0KP77rarrMEGX3/hxlliBBdydsKMYzbCM+Pm/BCRAuc/H6y9SNsQUFlcsso?= =?us-ascii?q?Y/oU8JOIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0Iu?= =?us-ascii?q?frymUqabtcm81viz9pvPeE0IwWPlOfIhZCmx+CXcsswLncNIMK83xh+B9ntFf+?= =?us-ascii?q?FL2SViP1uVkxLU6cKguphu73IDlegm8psKaajmY6kiBZUeRAk8MG057cmh/U3b?= =?us-ascii?q?RBaV5XYQW2E+nR9BAgyD5xb/CMSi+hDmv/ZwjXHJdfb9Sqo5DHH7t/9m?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BdAQCWfHFYhrbYVdFeGgEBAQECAQEBA?= =?us-ascii?q?QgBAQEBFQEBAQECAQEBAQgBAQEBgw8BAQEBAUA+gQwHlQqKaIhvjDiCCiaFfAK?= =?us-ascii?q?BTwdBEgEBAQEBAQEBAQEBEgEBAQgLCwodMIIzBAEVAQSCFwEFIx0BGx0BAwwGB?= =?us-ascii?q?QsNAgImAgIiAREBBQEcBhOIVAEDGA6jYz+MA4F6CQUBHIMJBYNRChknDVSCAgE?= =?us-ascii?q?BAQEGAQEBARwCBhJ5ihuCToUAgl4FjxWMBwGGWIp0gkiOFJEPFB6BFCYDgW5MF?= =?us-ascii?q?IQNIIFrPTUBhxaBTwEBAQ?= X-IPAS-Result: =?us-ascii?q?A0BdAQCWfHFYhrbYVdFeGgEBAQECAQEBAQgBAQEBFQEBAQE?= =?us-ascii?q?CAQEBAQgBAQEBgw8BAQEBAUA+gQwHlQqKaIhvjDiCCiaFfAKBTwdBEgEBAQEBA?= =?us-ascii?q?QEBAQEBEgEBAQgLCwodMIIzBAEVAQSCFwEFIx0BGx0BAwwGBQsNAgImAgIiARE?= =?us-ascii?q?BBQEcBhOIVAEDGA6jYz+MA4F6CQUBHIMJBYNRChknDVSCAgEBAQEGAQEBARwCB?= =?us-ascii?q?hJ5ihuCToUAgl4FjxWMBwGGWIp0gkiOFJEPFB6BFCYDgW5MFIQNIIFrPTUBhxa?= =?us-ascii?q?BTwEBAQ?= X-IronPort-AV: E=Sophos;i="5.33,332,1477954800"; d="scan'208";a="253963112" Received: from mail-qt0-f182.google.com ([209.85.216.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 08 Jan 2017 00:46:15 +0100 Received: by mail-qt0-f182.google.com with SMTP id l7so59866260qtd.1 for ; Sat, 07 Jan 2017 15:46:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lGwJqUk4vJK5vDhzllbJ0U4OVLAej0IXPX7bYOM8+Aw=; b=skLfGvQ//aYzbF92n9VCQUbl+JbiAQmV+ccRNddS1q9LrltzoLD7JrAYzxUAlVkiUX X/AlFSG4T8J8knRcs/EtZvSFp8WBPiUh/ijbvNVnw4gtbsRw92CHaJoH+Bs8eUVoAXq7 KLXnpN6ZFWYB3CsdMA4QeBooLTZ+MKwuIvKXeO0U4jcUhor4JbKw1+hELT+9EFXk+EHo QF+p2TxaQFSxQz8ip1stM7pKBn50LTVVPrwcrOtxJJAsNu2TKQV5PQi890twSkrc8A5t HfmDQzy6JOma3I9D0vje30GCPiLbyoPCXmQHdhQo99b68ZDI4DhI7XzYe9wc7Obs8GAe 2OCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lGwJqUk4vJK5vDhzllbJ0U4OVLAej0IXPX7bYOM8+Aw=; b=abRpFqBmT1mh0r3+BTdaga/4U5KsvGKwzTJXYFYvGetDu7jLd/MEXXpugDTjl6fkAo xp7jH7UMe4dBGSlJR0lm0CVn1bufGGb4IYLxQNsnvG/NDAOM6o1IVOXxWtoeH+qbIV9i RkWOODP7Um9PMQV3mJE5os/HSKh0WV3IYmEBN2Z+bkCM25jL8ZF7sRR8ypiCAKNr/kkK 5z842Is7EF29eHD5azGmwenEdb/kfxNxs9WmVrlilrbTRGHdY4IsNUyv2FjWQegOs3/e 2mNVSpKZHGU3NArJLZ1nxH2RatcnkNpCyaHY+3+QJjwBxWWivpVtvy81TjG70ixs/ADL cEOw== X-Gm-Message-State: AIkVDXL8UDGxAVzPmUtLrCEvIUiLTd9lg5esfl5B7IUTJRSzhVoDaRuMBt8bx88AtVjZ5+WnTI1DD8za9TcOjQ== X-Received: by 10.200.53.243 with SMTP id l48mr75370675qtb.193.1483832773785; Sat, 07 Jan 2017 15:46:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.32.229 with HTTP; Sat, 7 Jan 2017 15:46:13 -0800 (PST) In-Reply-To: References: From: "Petter A. Urkedal" Date: Sun, 8 Jan 2017 00:46:13 +0100 Message-ID: To: Helmut Brandl Cc: Caml List Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] Preparing a project for opam On 8 January 2017 at 00:38, Helmut Brandl wrote: > Hello list, > > I am trying to prepare my project to being published via opam. I have pinned > my project to a local version on my harddisk and generated and opam file > which opam can build successfully. > > Now I am struggling with the "install" section of the opam file. > > For building I use ocamlbuild which builds a native executable file in the > source directory (to be precise in the _build subdirectory of the source > directory). Installing just means copying this executable into a directory > which is in the search path. I have achieved this by copying the executable > directly to ".opam/system/bin". However I am not sure if this is the > recommended way since somebody else might have chosen another directory name > and path on where to store ".opam". > > Is there a portable way to do this? Thanks for any hint. Yes, take a look at the "package-name.install" section in http://opam.ocaml.org/doc/Manual.html. You can then drop the install section from the opam file, and it also saves you from maintaining a corresponding removal script, as opam will keep track of what gets installed.