linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add a build.sh helper to allow for a one-stop build
@ 2016-10-10 15:28 Christoph Hellwig
       [not found] ` <1476113282-19194-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2016-10-10 15:28 UTC (permalink / raw)
  To: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

This allows for a quick build instead of typing the whole mkdir, cd,
cmake and ninja sequence.

Signed-off-by: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
---
 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
-- 
2.10.1.382.ga23ca1b

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-10-12 17:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-10 15:28 [PATCH] add a build.sh helper to allow for a one-stop build Christoph Hellwig
     [not found] ` <1476113282-19194-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-10-10 15:56   ` Bart Van Assche
     [not found]     ` <c2d80cd4-74b8-8391-1855-3c666f611d91-HInyCGIudOg@public.gmane.org>
2016-10-10 15:59       ` Christoph Hellwig
     [not found]         ` <20161010155949.GA20091-jcswGhMUV9g@public.gmane.org>
2016-10-10 16:17           ` Bart Van Assche
     [not found]             ` <ec4f3158-a25d-7cd8-216c-fbec52577e75-HInyCGIudOg@public.gmane.org>
2016-10-10 16:47               ` Jason Gunthorpe
     [not found]                 ` <20161010164758.GB1796-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-10-10 16:51                   ` Christoph Hellwig
     [not found]                     ` <20161010165115.GA8385-jcswGhMUV9g@public.gmane.org>
2016-10-10 17:46                       ` Bart Van Assche
2016-10-12  9:30                   ` Leon Romanovsky
     [not found]                     ` <20161012093015.GS9282-2ukJVAZIZ/Y@public.gmane.org>
2016-10-12 10:52                       ` Christoph Hellwig
     [not found]                         ` <20161012105208.GA9491-jcswGhMUV9g@public.gmane.org>
2016-10-12 12:18                           ` Leon Romanovsky
     [not found]                             ` <20161012121845.GT9282-2ukJVAZIZ/Y@public.gmane.org>
2016-10-12 12:22                               ` Leon Romanovsky
     [not found]                                 ` <20161012122220.GU9282-2ukJVAZIZ/Y@public.gmane.org>
2016-10-12 16:38                                   ` Jason Gunthorpe
     [not found]                                     ` <20161012163834.GA18838-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-10-12 17:31                                       ` Leon Romanovsky

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).