Repository: eclipse-bluechi/bluechi (language: python)

Issue:
Rename library and binary directory
## Please describe what you would like to see

As soon as we have the new name for the project we need to change the name of the directories
- https://github.com/engelmi/orch/tree/main/binchihua
- https://github.com/engelmi/orch/tree/main/libchihua-msg



Discussion / hints:

Fix patch:
diff --git a/Makefile b/Makefile
index a5b18713d1..49f014a640 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 
-ALL_SRC_FILES = 'find . -name "*.[ch]" ! -path "./binchihua/src/ini/ini.[ch]" ! -path "./binchihua/src/common/hashmap/*" ! -path "./binchihua/test/**" ! -path "./libchihua-msg/test/**" ! -path "./builddir/**" -print0'
+ALL_SRC_FILES = 'find . -name "*.[ch]" ! -path "./hirte/src/ini/ini.[ch]" ! -path "./hirte/src/common/hashmap/*" ! -path "./hirte/test/**" ! -path "./libhirte/test/**" ! -path "./builddir/**" -print0'
 
 fmt:
 	eval $(ALL_SRC_FILES) | xargs -0 -I {} clang-format -i --sort-includes {}
diff --git a/README.md b/README.md
index 446bac4c2d..4b57447d9c 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,9 @@
 <p align="center">
-  <h2 align="center">Project Name - TBD</h3>
+  <h2 align="center">Hirte</h3>
 </p>
 
 ---
 
-## Usage
-
-TBD
-
 ## Development
 
 ### Environment Setup
diff --git a/binchihua/meson.build b/hirte/meson.build
similarity index 100%
rename from binchihua/meson.build
rename to hirte/meson.build
diff --git a/binchihua/src/client/client.c b/hirte/src/client/client.c
similarity index 100%
rename from binchihua/src/client/client.c
rename to hirte/src/client/client.c
diff --git a/binchihua/src/client/meson.build b/hirte/src/client/meson.build
similarity index 100%
rename from binchihua/src/client/meson.build
rename to hirte/src/client/meson.build
diff --git a/binchihua/src/common/hashmap/LICENSE b/hirte/src/common/hashmap/LICENSE
similarity index 100%
rename from binchihua/src/common/hashmap/LICENSE
rename to hirte/src/common/hashmap/LICENSE
diff --git a/binchihua/src/common/hashmap/hashmap.c b/hirte/src/common/hashmap/hashmap.c
similarity index 99%
rename from binchihua/src/common/hashmap/hashmap.c
rename to hirte/src/common/hashmap/hashmap.c
index 30d89dc547..7352506ed7 100644
--- a/binchihua/src/common/hashmap/hashmap.c
+++ b/hirte/src/common/hashmap/hashmap.c
@@ -8,8 +8,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "../../../../libhirte/include/common/common.h"
 #include "hashmap.h"
-#include "../../../../libchihua-msg/include/common/common.h"
 
 static void *(*_malloc)(size_t) = NULL;
 static void *(*_realloc)(void *, size_t) = NULL;
diff --git a/binchihua/src/common/hashmap/hashmap.h b/hirte/src/common/hashmap/hashmap.h
similarity index 100%
rename from binchihua/src/common/hashmap/hashmap.h
rename to hirte/src/common/hashmap/hashmap.h
diff --git a/binchihua/src/common/opt.h b/hirte/src/common/opt.h
similarity index 100%
rename from binchihua/src/common/opt.h
rename to hirte/src/common/opt.h
diff --git a/binchihua/src/common/parse-util.c b/hirte/src/common/parse-util.c
similarity index 100%
rename from binchihua/src/common/parse-util.c
rename to hirte/src/common/parse-util.c
diff --git a/binchihua/src/common/parse-util.h b/hirte/src/common/parse-util.h
similarity index 100%
rename from binchihua/src/common/parse-util.h
rename to hirte/src/common/parse-util.h
diff --git a/binchihua/src/common/strings.h b/hirte/src/common/strings.h
similarity index 100%
rename from binchihua/src/common/strings.h
rename to hirte/src/common/strings.h
diff --git a/binchihua/src/ini/config.c b/hirte/src/ini/config.c
similarity index 98%
rename from binchihua/src/ini/config.c
rename to hirte/src/ini/config.c
index f9d2899629..359e949ed3 100644
--- a/binchihua/src/ini/config.c
+++ b/hirte/src/ini/config.c
@@ -1,7 +1,7 @@
 #include <assert.h>
 #include <stdlib.h>
 
-#include "../../../libchihua-msg/include/common/common.h"
+#include "../../../libhirte/include/common/common.h"
 #include "../common/strings.h"
 #include "config.h"
 #include "ini.h"
diff --git a/binchihua/src/ini/config.h b/hirte/src/ini/config.h
similarity index 100%
rename from binchihua/src/ini/config.h
rename to hirte/src/ini/config.h
diff --git a/binchihua/src/ini/ini.c b/hirte/src/ini/ini.c
similarity index 100%
rename from binchihua/src/ini/ini.c
rename to hirte/src/ini/ini.c
diff --git a/binchihua/src/ini/ini.h b/hirte/src/ini/ini.h
similarity index 100%
rename from binchihua/src/ini/ini.h
rename to hirte/src/ini/ini.h
diff --git a/binchihua/src/node/meson.build b/hirte/src/node/meson.build
similarity index 87%
rename from binchihua/src/node/meson.build
rename to hirte/src/node/meson.build
index 363e289d75..d9798fa357 100644
--- a/binchihua/src/node/meson.build
+++ b/hirte/src/node/meson.build
@@ -16,6 +16,6 @@ executable(
   dependencies: [
     systemd_dep
   ],
-  link_with: blue_chihuahua_shared,
+  link_with: hirte_lib,
   install: true
 )
diff --git a/binchihua/src/node/node.c b/hirte/src/node/node.c
similarity index 94%
rename from binchihua/src/node/node.c
rename to hirte/src/node/node.c
index de122cc3e6..3580f42b5e 100644
--- a/binchihua/src/node/node.c
+++ b/hirte/src/node/node.c
@@ -2,7 +2,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "../../../libchihua-msg/include/node.h"
+#include "../../../libhirte/include/node.h"
 #include "../ini/config.h"
 #include "opt.h"
 
diff --git a/binchihua/src/node/opt.c b/hirte/src/node/opt.c
similarity index 100%
rename from binchihua/src/node/opt.c
rename to hirte/src/node/opt.c
diff --git a/binchihua/src/node/opt.h b/hirte/src/node/opt.h
similarity index 100%
rename from binchihua/src/node/opt.h
rename to hirte/src/node/opt.h
diff --git a/binchihua/src/orch/meson.build b/hirte/src/orch/meson.build
similarity index 87%
rename from binchihua/src/orch/meson.build
rename to hirte/src/orch/meson.build
index 982848f58d..4a12c6bff6 100644
--- a/binchihua/src/orch/meson.build
+++ b/hirte/src/orch/meson.build
@@ -17,6 +17,6 @@ executable(
   dependencies: [
     systemd_dep
   ],
-  link_with: blue_chihuahua_shared,
+  link_with: hirte_lib,
   install: true
 )
diff --git a/binchihua/src/orch/opt.c b/hirte/src/orch/opt.c
similarity index 100%
rename from binchihua/src/orch/opt.c
rename to hirte/src/orch/opt.c
diff --git a/binchihua/src/orch/opt.h b/hirte/src/orch/opt.h
similarity index 100%
rename from binchihua/src/orch/opt.h
rename to hirte/src/orch/opt.h
diff --git a/binchihua/src/orch/orch.c b/hirte/src/orch/orch.c
similarity index 86%
rename from binchihua/src/orch/orch.c
rename to hirte/src/orch/orch.c
index 2613a38fee..84a4a2b36a 100644
--- a/binchihua/src/orch/orch.c
+++ b/hirte/src/orch/orch.c
@@ -1,8 +1,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "../../../libchihua-msg/include/common/common.h"
-#include "../../../libchihua-msg/include/orchestrator.h"
+#include "../../../libhirte/include/common/common.h"
+#include "../../../libhirte/include/orchestrator.h"
 #include "../ini/config.h"
 #include "opt.h"
 
diff --git a/libchihua-msg/include/common/common.h b/libhirte/include/common/common.h
similarity index 100%
rename from libchihua-msg/include/common/common.h
rename to libhirte/include/common/common.h
diff --git a/libchihua-msg/include/common/list.h b/libhirte/include/common/list.h
similarity index 100%
rename from libchihua-msg/include/common/list.h
rename to libhirte/include/common/list.h
diff --git a/libchihua-msg/include/common/memory.h b/libhirte/include/common/memory.h
similarity index 100%
rename from libchihua-msg/include/common/memory.h
rename to libhirte/include/common/memory.h
diff --git a/libchihua-msg/include/node.h b/libhirte/include/node.h
similarity index 100%
rename from libchihua-msg/include/node.h
rename to libhirte/include/node.h
diff --git a/libchihua-msg/include/orchestrator.h b/libhirte/include/orchestrator.h
similarity index 100%
rename from libchihua-msg/include/orchestrator.h
rename to libhirte/include/orchestrator.h
diff --git a/libchihua-msg/include/orchestrator/peer-manager.h b/libhirte/include/orchestrator/peer-manager.h
similarity index 100%
rename from libchihua-msg/include/orchestrator/peer-manager.h
rename to libhirte/include/orchestrator/peer-manager.h
diff --git a/libchihua-msg/include/peer-bus.h b/libhirte/include/peer-bus.h
similarity index 100%
rename from libchihua-msg/include/peer-bus.h
rename to libhirte/include/peer-bus.h
diff --git a/libchihua-msg/include/socket.h b/libhirte/include/socket.h
similarity index 100%
rename from libchihua-msg/include/socket.h
rename to libhirte/include/socket.h
diff --git a/libchihua-msg/meson.build b/libhirte/meson.build
similarity index 92%
rename from libchihua-msg/meson.build
rename to libhirte/meson.build
index d3ef1a03ae..7dd5689c23 100644
--- a/libchihua-msg/meson.build
+++ b/libhirte/meson.build
@@ -1,4 +1,4 @@
-libchihua_src = [
+libhirte_src = [
     'include/node.h',
     'include/orchestrator.h',
     'include/peer-bus.h',
@@ -31,8 +31,8 @@ libruntime_so_version = '@0@.@1@.@2@'.format((libruntime_lt_c - libruntime_lt_a)
                                               libruntime_lt_a,
                                               libruntime_lt_r)
 
-blue_chihuahua_shared = shared_library('-chihua-msg',
-                            libchihua_src,
+hirte_lib = shared_library('hirte',
+                            libhirte_src,
                             dependencies: [
                                 systemd_dep
                             ],
diff --git a/libchihua-msg/src/common/dbus.h b/libhirte/src/common/dbus.h
similarity index 100%
rename from libchihua-msg/src/common/dbus.h
rename to libhirte/src/common/dbus.h
diff --git a/libchihua-msg/src/common/memory.h b/libhirte/src/common/memory.h
similarity index 100%
rename from libchihua-msg/src/common/memory.h
rename to libhirte/src/common/memory.h
diff --git a/libchihua-msg/src/node.c b/libhirte/src/node.c
similarity index 100%
rename from libchihua-msg/src/node.c
rename to libhirte/src/node.c
diff --git a/libchihua-msg/src/orchestrator.c b/libhirte/src/orchestrator.c
similarity index 100%
rename from libchihua-msg/src/orchestrator.c
rename to libhirte/src/orchestrator.c
diff --git a/libchihua-msg/src/orchestrator/peer-manager.c b/libhirte/src/orchestrator/peer-manager.c
similarity index 100%
rename from libchihua-msg/src/orchestrator/peer-manager.c
rename to libhirte/src/orchestrator/peer-manager.c
diff --git a/libchihua-msg/src/peer-bus.c b/libhirte/src/peer-bus.c
similarity index 100%
rename from libchihua-msg/src/peer-bus.c
rename to libhirte/src/peer-bus.c
diff --git a/libchihua-msg/src/socket.c b/libhirte/src/socket.c
similarity index 100%
rename from libchihua-msg/src/socket.c
rename to libhirte/src/socket.c
diff --git a/meson.build b/meson.build
index 0b032a6bf2..0892647f87 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
 project(
-  'blue-chihuahua',
+  'hirte',
   'c',
   version: '0.0.1',
   license: 'GPL-2.0-or-later',
@@ -18,7 +18,7 @@ add_global_arguments('-D_GNU_SOURCE', language : 'c')
 systemd_dep = dependency('libsystemd')
 
 # Subdirectory for the shared library.
-subdir('libchihua-msg')
+subdir('libhirte')
 
 # Subdirectory for applications.
-subdir('binchihua')
+subdir('hirte')


Test patch:
diff --git a/binchihua/test/client/.gitkeep b/hirte/test/client/.gitkeep
similarity index 100%
rename from binchihua/test/client/.gitkeep
rename to hirte/test/client/.gitkeep
diff --git a/binchihua/test/common/meson.build b/hirte/test/common/meson.build
similarity index 100%
rename from binchihua/test/common/meson.build
rename to hirte/test/common/meson.build
diff --git a/binchihua/test/common/parse-util_test.c b/hirte/test/common/parse-util_test.c
similarity index 100%
rename from binchihua/test/common/parse-util_test.c
rename to hirte/test/common/parse-util_test.c
diff --git a/binchihua/test/node/.gitkeep b/hirte/test/node/.gitkeep
similarity index 100%
rename from binchihua/test/node/.gitkeep
rename to hirte/test/node/.gitkeep
diff --git a/binchihua/test/orch/.gitkeep b/hirte/test/orch/.gitkeep
similarity index 100%
rename from binchihua/test/orch/.gitkeep
rename to hirte/test/orch/.gitkeep
diff --git a/libchihua-msg/test/common/list_test.c b/libhirte/test/common/list_test.c
similarity index 100%
rename from libchihua-msg/test/common/list_test.c
rename to libhirte/test/common/list_test.c
diff --git a/libchihua-msg/test/meson.build b/libhirte/test/meson.build
similarity index 100%
rename from libchihua-msg/test/meson.build
rename to libhirte/test/meson.build