gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet-nim] 41/61: move example applications / scripts / c


From: gnunet
Subject: [GNUnet-SVN] [gnunet-nim] 41/61: move example applications / scripts / config files to example folder
Date: Sat, 13 Apr 2019 13:36:16 +0200

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

ng0 pushed a commit to branch master
in repository gnunet-nim.

commit d3a8f59cc6b81c380213c10d14a26cc81f7938c0
Author: lurchi <address@hidden>
AuthorDate: Wed Aug 8 20:18:56 2018 +0200

    move example applications / scripts / config files to example folder
---
 gnunet.conf => examples/gnunet1.conf      |  8 ++++----
 otherpeer.conf => examples/gnunet2.conf   |  8 ++++----
 gnunet.conf => examples/gnunet3.conf      |  8 ++++----
 gnunet_nim.nim => examples/gnunet_nim.nim |  0
 examples/start_peers.sh                   | 17 +++++++++++++++++
 examples/stop_peers.sh                    |  8 ++++++++
 start_peers.sh                            | 10 ----------
 stop_peers.sh                             |  6 ------
 8 files changed, 37 insertions(+), 28 deletions(-)

diff --git a/gnunet.conf b/examples/gnunet1.conf
similarity index 75%
copy from gnunet.conf
copy to examples/gnunet1.conf
index 6dd01ee..a5feacf 100644
--- a/gnunet.conf
+++ b/examples/gnunet1.conf
@@ -1,8 +1,8 @@
 [PATHS]
-GNUNET_HOME = ./gnunet_home
-GNUNET_DATA_HOME = ./gnunet_data_home
-GNUNET_RUNTIME_DIR = ./gnunet_runtime_dir
-GNUNET_USER_RUNTIME_DIR = ./gnunet_user_runtime_dir
+GNUNET_HOME = ./gnunet1_home
+GNUNET_DATA_HOME = ./gnunet1_data_home
+GNUNET_RUNTIME_DIR = ./gnunet1_runtime_dir
+GNUNET_USER_RUNTIME_DIR = ./gnunet1_user_runtime_dir
 
 [arm]
 GLOBAL_POSTFIX = -L WARNING -l $GNUNET_HOME/gnunet.log
diff --git a/otherpeer.conf b/examples/gnunet2.conf
similarity index 74%
rename from otherpeer.conf
rename to examples/gnunet2.conf
index e0bd90b..b4eaaac 100644
--- a/otherpeer.conf
+++ b/examples/gnunet2.conf
@@ -1,8 +1,8 @@
 [PATHS]
-GNUNET_HOME = ./otherpeer_home
-GNUNET_DATA_HOME = ./otherpeer_data_home
-GNUNET_RUNTIME_DIR = ./otherpeer_runtime_dir
-GNUNET_USER_RUNTIME_DIR = ./otherpeer_user_runtime_dir
+GNUNET_HOME = ./gnunet2_home
+GNUNET_DATA_HOME = ./gnunet2_data_home
+GNUNET_RUNTIME_DIR = ./gnunet2_runtime_dir
+GNUNET_USER_RUNTIME_DIR = ./gnunet2_user_runtime_dir
 
 [arm]
 GLOBAL_POSTFIX = -L WARNING -l $GNUNET_HOME/gnunet.log
diff --git a/gnunet.conf b/examples/gnunet3.conf
similarity index 75%
rename from gnunet.conf
rename to examples/gnunet3.conf
index 6dd01ee..54177f2 100644
--- a/gnunet.conf
+++ b/examples/gnunet3.conf
@@ -1,8 +1,8 @@
 [PATHS]
-GNUNET_HOME = ./gnunet_home
-GNUNET_DATA_HOME = ./gnunet_data_home
-GNUNET_RUNTIME_DIR = ./gnunet_runtime_dir
-GNUNET_USER_RUNTIME_DIR = ./gnunet_user_runtime_dir
+GNUNET_HOME = ./gnunet3_home
+GNUNET_DATA_HOME = ./gnunet3_data_home
+GNUNET_RUNTIME_DIR = ./gnunet3_runtime_dir
+GNUNET_USER_RUNTIME_DIR = ./gnunet3_user_runtime_dir
 
 [arm]
 GLOBAL_POSTFIX = -L WARNING -l $GNUNET_HOME/gnunet.log
diff --git a/gnunet_nim.nim b/examples/gnunet_nim.nim
similarity index 100%
rename from gnunet_nim.nim
rename to examples/gnunet_nim.nim
diff --git a/examples/start_peers.sh b/examples/start_peers.sh
new file mode 100755
index 0000000..8d2c341
--- /dev/null
+++ b/examples/start_peers.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+CONFIG1=gnunet1.conf
+CONFIG2=gnunet2.conf
+CONFIG3=gnunet3.conf
+
+gnunet-arm -c $CONFIG1 -s
+echo "peer 1: $(gnunet-peerinfo -c ${CONFIG1} -sq)"
+gnunet-arm -c $CONFIG2 -s
+echo "peer 2: $(gnunet-peerinfo -c ${CONFIG2} -sq)"
+gnunet-arm -c $CONFIG3 -s
+echo "peer 3: $(gnunet-peerinfo -c ${CONFIG3} -sq)"
+gnunet-peerinfo -c $CONFIG1 -p $(gnunet-peerinfo -c $CONFIG2 -g)
+gnunet-peerinfo -c $CONFIG1 -p $(gnunet-peerinfo -c $CONFIG3 -g)
+gnunet-peerinfo -c $CONFIG2 -p $(gnunet-peerinfo -c $CONFIG1 -g)
+gnunet-peerinfo -c $CONFIG2 -p $(gnunet-peerinfo -c $CONFIG3 -g)
+gnunet-peerinfo -c $CONFIG3 -p $(gnunet-peerinfo -c $CONFIG1 -g)
+gnunet-peerinfo -c $CONFIG3 -p $(gnunet-peerinfo -c $CONFIG2 -g)
diff --git a/examples/stop_peers.sh b/examples/stop_peers.sh
new file mode 100755
index 0000000..eefc5f4
--- /dev/null
+++ b/examples/stop_peers.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+CONFIG1=gnunet1.conf
+CONFIG2=gnunet2.conf
+CONFIG3=gnunet3.conf
+
+gnunet-arm -c $CONFIG1 -e
+gnunet-arm -c $CONFIG2 -e
+gnunet-arm -c $CONFIG3 -e
diff --git a/start_peers.sh b/start_peers.sh
deleted file mode 100755
index 756edac..0000000
--- a/start_peers.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-CONFIG_OUR_PEER=gnunet.conf
-CONFIG_OTHER_PEER=otherpeer.conf
-
-gnunet-arm -c $CONFIG_OUR_PEER -s
-echo "our peer: $(gnunet-peerinfo -c ${CONFIG_OUR_PEER} -sq)"
-gnunet-arm -c $CONFIG_OTHER_PEER -s
-echo "other peer: $(gnunet-peerinfo -c ${CONFIG_OTHER_PEER} -sq)"
-gnunet-peerinfo -c $CONFIG_OUR_PEER -p $(gnunet-peerinfo -c $CONFIG_OTHER_PEER 
-g)
-gnunet-peerinfo -c $CONFIG_OTHER_PEER -p $(gnunet-peerinfo -c $CONFIG_OUR_PEER 
-g)
diff --git a/stop_peers.sh b/stop_peers.sh
deleted file mode 100755
index 5b6ec38..0000000
--- a/stop_peers.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-CONFIG_OUR_PEER=gnunet.conf
-CONFIG_OTHER_PEER=otherpeer.conf
-
-gnunet-arm -c $CONFIG_OUR_PEER -e
-gnunet-arm -c $CONFIG_OTHER_PEER -e

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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