wip restructuring
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
# Bash harness for GSC command line tool
|
||||
#
|
||||
# based on similar harness for sfp
|
||||
#
|
||||
# gsc foo bar baz
|
||||
# -> zx rundir \
|
||||
# /home/pharpend/src/ioecs/gsc/cli \
|
||||
# --libs=gsc:/home/pharpend/src/ioecs/gsc \
|
||||
# -> zx rundir /home/pharpend/src/ioecs/gsc \
|
||||
# foo bar baz
|
||||
|
||||
zx_exists() {
|
||||
@@ -27,8 +27,12 @@ fi
|
||||
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"
|
||||
|
||||
# simplified
|
||||
zx rundir $FP_PRJ_DIR
|
||||
|
||||
|
||||
# commented out legacy code in case need it later:
|
||||
# # compute libs string
|
||||
# LIB_PARTS=()
|
||||
# for depname in "${LOCAL_DEPS[@]}"; do
|
||||
@@ -37,9 +41,9 @@ FP_CLI_DIR="${FP_PRJ_DIR}/cli"
|
||||
# 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 $@
|
||||
#
|
||||
#LOCAL_LIBS=""
|
||||
#
|
||||
##echo "zx rundir $FP_CLI_DIR --libs=$LOCAL_LIBS $@"
|
||||
#
|
||||
##zx rundir $FP_CLI_DIR --libs=$LOCAL_LIBS $@
|
||||
|
||||
Reference in New Issue
Block a user