[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/04: 'dev' option to install
From: |
gnunet |
Subject: |
[libeufin] 01/04: 'dev' option to install |
Date: |
Fri, 13 Nov 2020 14:31:57 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 3a50b74467adf5b450fa4efabadfab78d5675009
Author: MS <ms@taler.net>
AuthorDate: Thu Nov 12 22:57:47 2020 +0100
'dev' option to install
---
.gitignore | 5 ++++-
Makefile | 26 +++++++++++++++++++++++---
nexus/libeufin-nexus-dev-template | 8 ++++++++
sandbox/libeufin-sandbox-dev-template | 8 ++++++++
4 files changed, 43 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
index 3a4ba95..92d2b7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,7 @@
-build
+nexus/libeufin-nexus-dev
+sandbox/libeufin-sandbox-dev
+configure
+build*
.gradle
out
*.sqlite3
diff --git a/Makefile b/Makefile
index 23bfeed..2ef567a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,37 @@
include build-system/config.mk
+escaped_pwd = $(shell pwd | sed 's/\//\\\//g')
+
install: install-nexus install-cli
+install-dev: install-nexus-dev install-sandbox-dev install-cli
+
+.PHONY: install-sandbox
install-sandbox:
- @echo Installing sandbox.
+ @echo Installing Sandbox.
@./gradlew -q -Pprefix=$(prefix) sandbox:installToPrefix; cd ..
+.PHONY: install-sandbox-dev
+install-sandbox-dev:
+ @echo Installing Sandbox "dev".
+ @sed 's/PROJECT/$(escaped_pwd)/' sandbox/libeufin-sandbox-dev-template
> sandbox/libeufin-sandbox-dev
+ @install -D sandbox/libeufin-sandbox-dev $(prefix)/bin/libeufin-sandbox
+
+.PHONY: install-nexus
install-nexus:
- @echo Installing nexus.
+ @echo Installing Nexus.
@./gradlew -q -Pprefix=$(prefix) nexus:installToPrefix; cd ..
+.PHONY: install-nexus-dev
+install-nexus-dev:
+ @echo Installing Nexus "dev".
+ @sed 's/PROJECT/$(escaped_pwd)/' nexus/libeufin-nexus-dev-template >
nexus/libeufin-nexus-dev
+ @install -D nexus/libeufin-nexus-dev $(prefix)/bin/libeufin-nexus
+
+.PHONY: install-cli
install-cli:
@echo Installing CLI.
- @cp cli/libeufin-cli $(prefix)/bin
+ @install -D cli/libeufin-cli $(prefix)/bin
+.PHONY: assemble
assemble:
@./gradlew assemble
diff --git a/nexus/libeufin-nexus-dev-template
b/nexus/libeufin-nexus-dev-template
new file mode 100644
index 0000000..8383497
--- /dev/null
+++ b/nexus/libeufin-nexus-dev-template
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+ARGS="$@"
+cd PROJECT
+if (( $# > 0 )); then ./gradlew --console=plain nexus:run --args="$ARGS"
+else ./gradlew --console=plain nexus:run
+fi
+cd - > /dev/null
diff --git a/sandbox/libeufin-sandbox-dev-template
b/sandbox/libeufin-sandbox-dev-template
new file mode 100644
index 0000000..2e284c0
--- /dev/null
+++ b/sandbox/libeufin-sandbox-dev-template
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+ARGS="$@"
+cd PROJECT
+if (( $# > 0 )); then ./gradlew --console=plain sandbox:run --args="$ARGS"
+else ./gradlew --console=plain sandbox:run
+fi
+cd - > /dev/null
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.