From patchwork Mon Oct 10 15:28:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 9369641 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3FA8D607FD for ; Mon, 10 Oct 2016 15:28:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3101128C97 for ; Mon, 10 Oct 2016 15:28:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25E3D28DEB; Mon, 10 Oct 2016 15:28:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0340828C97 for ; Mon, 10 Oct 2016 15:28:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752735AbcJJP2G (ORCPT ); Mon, 10 Oct 2016 11:28:06 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:59714 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752488AbcJJP2F (ORCPT ); Mon, 10 Oct 2016 11:28:05 -0400 Received: from [83.175.99.196] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.85_2 #1 (Red Hat Linux)) id 1btcUn-0005wi-0c; Mon, 10 Oct 2016 15:28:05 +0000 From: Christoph Hellwig To: jgunthorpe@obsidianresearch.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] add a build.sh helper to allow for a one-stop build Date: Mon, 10 Oct 2016 17:28:02 +0200 Message-Id: <1476113282-19194-1-git-send-email-hch@lst.de> X-Mailer: git-send-email 2.1.4 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows for a quick build instead of typing the whole mkdir, cd, cmake and ninja sequence. Signed-off-by: Christoph Hellwig --- README.md | 5 +---- build.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100755 build.sh diff --git a/README.md b/README.md index 98ec5a7..2ddecc3 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,7 @@ Additional service daemons are provided for: This project uses a cmake based build system. Quick start: ```sh -$ mkdir build -$ cd build -$ cmake -GNinja .. -$ ninja +$ sh build.sh ``` *build/bin* will contain the sample programs and *build/lib* will contain the diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e3d85eb --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +SRCDIR=`dirname $0` +BUILDDIR="$SRCDIR/build" + +if [ ! -d "$BUILDDIR" ]; then + mkdir $BUILDDIR +fi + +cd $BUILDDIR +cmake -GNinja .. +ninja