summaryrefslogtreecommitdiff
path: root/scripts/build-clients.sh
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-08 03:54:55 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-08 03:54:55 +0000
commit20cb29c2f8c5c87bc590896854a20b1473ceb358 (patch)
tree2857f41513a56ad41af97b57362639298aa7f033 /scripts/build-clients.sh
#2
Diffstat (limited to 'scripts/build-clients.sh')
-rwxr-xr-xscripts/build-clients.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/build-clients.sh b/scripts/build-clients.sh
new file mode 100755
index 0000000..3e909f9
--- /dev/null
+++ b/scripts/build-clients.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env sh
+# Build hybbx-telnet, hybbx-terminal, and hybbx-ssh (when libssh is available)
+# without the hybbx server or plugins.
+set -eu
+
+ROOT="$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)"
+BUILD="${1:-$ROOT/build-clients}"
+
+shift 2>/dev/null || true
+
+cmake -B "$BUILD" -DHYBBX_CLIENTS_ONLY=ON "$@"
+cmake --build "$BUILD"
+
+echo "Clients:"
+echo " $BUILD/src/clients/hybbx-telnet"
+echo " $BUILD/src/clients/hybbx-terminal"
+if [ -x "$BUILD/src/clients/hybbx-ssh" ]; then
+ echo " $BUILD/src/clients/hybbx-ssh"
+fi
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com