gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated (dd1a194 -> 360d0f8)


From: gnunet
Subject: [libeufin] branch master updated (dd1a194 -> 360d0f8)
Date: Thu, 21 Jan 2021 16:49:03 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a change to branch master
in repository libeufin.

    from dd1a194  install-dev gone
     new df7d8c2  template cli
     new 80478f3  remove unwanted
     new cb7a287  gitignore
     new 360d0f8  rename template cli

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .gitignore                                      |  1 +
 build.gradle                                    | 11 +++++++++++
 cli/bin/{libeufin-cli => libeufin-cli.template} |  2 +-
 3 files changed, 13 insertions(+), 1 deletion(-)
 rename cli/bin/{libeufin-cli => libeufin-cli.template} (99%)

diff --git a/.gitignore b/.gitignore
index c943cec..f554aff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@ __pycache__
 .DS_Store
 *.mk
 util/src/main/resources/version.txt
+cli/bin/libeufin-cli
diff --git a/build.gradle b/build.gradle
index a4b7427..86153d6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,3 +1,5 @@
+import org.apache.tools.ant.filters.ReplaceTokens
+
 plugins {
     id 'org.jetbrains.kotlin.jvm' version '1.4.30-RC'
     id 'idea'
@@ -28,12 +30,21 @@ task versionFile() {
     new File("${projectDir}/util/src/main/resources", "version.txt").text = 
getRootProject().version
 }
 
+task replaceVersionCli(type: Copy) {
+    from file("cli/bin/libeufin-cli.template")
+    into file("cli/bin/")
+    rename("libeufin-cli.template", "libeufin-cli")
+    filter(ReplaceTokens, tokens: [version: getRootProject().version])
+}
+
 classes {
     dependsOn versionFile
+    dependsOn replaceVersionCli
 }
 
 task dist(type: Zip) {
     dependsOn versionFile
+    dependsOn replaceVersionCli
     evaluationDependsOn("nexus")
     evaluationDependsOn("sandbox")
     def topDir = "${getRootProject().name}-${getRootProject().version}"
diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli.template
similarity index 99%
rename from cli/bin/libeufin-cli
rename to cli/bin/libeufin-cli.template
index c7aabe5..724aa20 100755
--- a/cli/bin/libeufin-cli
+++ b/cli/bin/libeufin-cli.template
@@ -45,7 +45,7 @@ class NexusAccess:
 
 
 @click.group(help="General utility to invoke HTTP REST services offered by 
Nexus.")
-@click.version_option(version="0.0.1-dev.1")
+@click.version_option(version="@version@")
 def cli():
     pass
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]