[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-build-common] branch master updated: add msg, progname, version_v
From: |
gnunet |
Subject: |
[taler-build-common] branch master updated: add msg, progname, version_version |
Date: |
Mon, 25 Nov 2019 21:22:00 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository build-common.
The following commit(s) were added to refs/heads/master by this push:
new 4a72461 add msg, progname, version_version
4a72461 is described below
commit 4a724617a3dd7aee4fe339c8db17ac01bd5c87a6
Author: ng0 <address@hidden>
AuthorDate: Mon Nov 25 20:21:41 2019 +0000
add msg, progname, version_version
---
sh/lib.sh/msg.sh | 26 ++++++++++++++++++++++++++
sh/lib.sh/progname.sh | 1 +
sh/lib.sh/version_gnunet.sh | 5 +++++
3 files changed, 32 insertions(+)
diff --git a/sh/lib.sh/msg.sh b/sh/lib.sh/msg.sh
new file mode 100644
index 0000000..6bd49ee
--- /dev/null
+++ b/sh/lib.sh/msg.sh
@@ -0,0 +1,26 @@
+statusmsg()
+{
+ ${runcmd} echo "${tab}$@" | tee -a "${results}"
+}
+
+infomsg()
+{
+ if [ x$verbosity = x1 ]; then
+ statusmsg "INFO:${tab}$@"
+ fi
+}
+
+warningmsg()
+{
+ statusmsg "WARNING:${tab}$@"
+}
+
+errormsg()
+{
+ statusmsg "ERROR:${tab}$@"
+}
+
+linemsg()
+{
+ statusmsg "========================================="
+}
diff --git a/sh/lib.sh/progname.sh b/sh/lib.sh/progname.sh
new file mode 100644
index 0000000..dd6fae8
--- /dev/null
+++ b/sh/lib.sh/progname.sh
@@ -0,0 +1 @@
+progname=${0##*/}
diff --git a/sh/lib.sh/version_gnunet.sh b/sh/lib.sh/version_gnunet.sh
new file mode 100644
index 0000000..be68f73
--- /dev/null
+++ b/sh/lib.sh/version_gnunet.sh
@@ -0,0 +1,5 @@
+print_version()
+{
+ GNUNET_ARM_VERSION=`gnunet-arm -v | awk '{print $2 " " $3}'`
+ echo ${progname} $GNUNET_ARM_VERSION
+}
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-build-common] branch master updated: add msg, progname, version_version,
gnunet <=