diff options
| author | 2024-01-20 18:45:29 -0500 | |
|---|---|---|
| committer | 2024-01-20 18:45:29 -0500 | |
| commit | 88ea5bdca85fc0954d1dd64309a308199c1af4a8 (patch) | |
| tree | ef9dc778b9c42ab2fecce8810f777ccc133cebef /scripts | |
| parent | b79f074a86525ece1394af7bc5870516a8c38ba9 (diff) | |
| download | camu-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-x | scripts/cmv_add.sh | 15 | ||||
| -rwxr-xr-x | scripts/run_debug.sh | 2 |
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 "$@" |