moving sfc over here

This commit is contained in:
Peter Harpending
2026-06-01 16:44:33 -07:00
parent 177978d184
commit f548c7d88d
15 changed files with 3534 additions and 19 deletions
Executable
+45
View File
@@ -0,0 +1,45 @@
#!/usr/bin/env bash
# Bash harness for GSC command line tool
#
# gsc foo bar baz
# -> zx rundir \
# /home/pharpend/src/ioecs/gsc/cli \
# --libs=gsc:/home/pharpend/src/ioecs/gsc \
# foo bar baz
zx_exists() {
command -v zx > /dev/null
}
if ! zx_exists ; then
echo "zx not found in \$PATH"
echo ""
echo "Please install Erlang and zx:"
echo "https://git.qpq.swiss/QPQ-AG/public-wiki/wiki/Install-Erlang-and-zx"
echo ""
echo "PATH=${PATH}"
exit 1
fi
# script location and parent dir
FP_THIS_FILE=$(readlink -f "${BASH_SOURCE[0]}")
FP_THIS_DIR=$(dirname -- "${FP_THIS_FILE}")
FP_PRJ_DIR=$(dirname -- "${FP_THIS_DIR}")
FP_CLI_DIR="${FP_PRJ_DIR}/cli"
# # compute libs string
# LIB_PARTS=()
# for depname in "${LOCAL_DEPS[@]}"; do
# LIB_PARTS+=("${depname}:${PRJ_DIR}/${depname}")
# done
# IFS=,
# LOCAL_LIBS="${LIB_PARTS[*]}"
# unset IFS
LOCAL_LIBS="gsc:${FP_PRJ_DIR}"
#echo "zx rundir $FP_CLI_DIR --libs=$LOCAL_LIBS $@"
zx rundir $FP_CLI_DIR --libs=$LOCAL_LIBS $@