gnunet-svn
[Top][All Lists]
Advanced

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

[taler-build-common] branch master updated: document example


From: gnunet
Subject: [taler-build-common] branch master updated: document example
Date: Mon, 09 Nov 2020 13:04:11 +0100

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

dold pushed a commit to branch master
in repository build-common.

The following commit(s) were added to refs/heads/master by this push:
     new 31081f4  document example
31081f4 is described below

commit 31081f44232d0233629ad3a4d398322da9958ed4
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Nov 9 13:03:46 2020 +0100

    document example
---
 configure.py.template | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/configure.py.template b/configure.py.template
index 337c51d..7edc219 100644
--- a/configure.py.template
+++ b/configure.py.template
@@ -1,9 +1,32 @@
-# This configure.py.template file is in the public domain.
+# This configure.py file is places in the public domain.
 
-from talerbuildconfig import *
+# Configure the build directory.
+# This file is invoked by './configure' and should usually not be invoked
+# manually.
 
-b = BuildConfig()
+import talerbuildconfig as tbc
+import sys
+import shutil
+
+if getattr(tbc, "serialversion", 0) < 2:
+    print("talerbuildconfig outdated, please update the build-common submodule 
and/or bootstrap")
+    sys.exit(1)
+
+b = tbc.BuildConfig()
+
+# Enable the --prefix option
 b.enable_prefix()
+
+# Enable generation of the "config.mk" include file for the main "Makefile"
 b.enable_configmk()
-b.add_tool(PosixTool("find"))
+
+# Declare dependencies
+b.add_tool(tbc.PosixTool("find"))
+b.add_tool(tbc.NodeJsTool(version_spec=">=12"))
+b.add_tool(tbc.GenericTool("npm"))
+b.add_tool(tbc.GenericTool("pnpm", hint="Use 'sudo npm install -g pnpm' to 
install."))
+
 b.run()
+
+print("copying Makefile")
+shutil.copyfile("build-system/Makefile", "Makefile")

-- 
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]