summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-01-20 18:45:29 -0500
committerAndrew Opalach <andrew@akon.city> 2024-01-20 18:45:29 -0500
commit88ea5bdca85fc0954d1dd64309a308199c1af4a8 (patch)
treeef9dc778b9c42ab2fecce8810f777ccc133cebef /scripts
parentb79f074a86525ece1394af7bc5870516a8c38ba9 (diff)
downloadcamu-88ea5bdca85fc0954d1dd64309a308199c1af4a8.tar.gz
camu-88ea5bdca85fc0954d1dd64309a308199c1af4a8.tar.bz2
camu-88ea5bdca85fc0954d1dd64309a308199c1af4a8.zip
wip
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cmv_add.sh15
-rwxr-xr-xscripts/run_debug.sh2
2 files changed, 16 insertions, 1 deletions
diff --git a/scripts/cmv_add.sh b/scripts/cmv_add.sh
new file mode 100755
index 0000000..c48c07f
--- /dev/null
+++ b/scripts/cmv_add.sh
@@ -0,0 +1,15 @@
+#! /usr/bin/env bash
+CMD=""
+for dir in "$@"
+do
+ if [[ $dir == http\://* || $dir == https\://* ]]; then
+ EXP=$dir
+ else
+ EXP=$(realpath -s "`printf '%b' \"$dir\"`")
+ if [[ ! -f $EXP ]]; then
+ EXP=";"$dir
+ fi
+ fi
+ CMD="$CMD""$EXP\n"
+done
+echo -e "$CMD""X" | socat - UNIX-CONNECT:/tmp/tree_sock
diff --git a/scripts/run_debug.sh b/scripts/run_debug.sh
index bd9a667..8b8b329 100755
--- a/scripts/run_debug.sh
+++ b/scripts/run_debug.sh
@@ -1,2 +1,2 @@
#! /usr/bin/env sh
-gdb -ex run --args ./src/fruits/cmv/cmv "$@"
+gdb -ex run --args ./src/fruits/sink/sink "$@"