Files
wasm-simulator/list-linuxcnc-source-support-objects.sh

32 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc}
filter=${1:-}
preflight_cache_dir=${CNC_SIM_PREFLIGHT_CACHE_DIR:-build/linuxcnc-helper-preflight-cache}
LINUXCNC_ROOT="$linuxcnc_root" ./check-linuxcnc-inputs-cached.sh --cache-dir "$preflight_cache_dir" --root-only
objects=(
src/objects/emc/rs274ngc/interpmodule.o
src/objects/emc/rs274ngc/canonmodule.o
src/objects/emc/rs274ngc/pyarrays.o
src/objects/emc/rs274ngc/pyblock.o
src/objects/emc/rs274ngc/pyemctypes.o
src/objects/emc/rs274ngc/pyinterp1.o
src/objects/emc/rs274ngc/pyparamclass.o
src/objects/emc/nml_intf/emcops.o
src/objects/emc/sai/dummyemcstat.o
src/objects/libnml/nml/stat_msg.o
)
for object in "${objects[@]}"; do
printf '%s\n' "$linuxcnc_root/$object"
done | ./list-filtered-existing-paths.sh \
"$filter" \
"missing LinuxCNC support object" \
"missing LinuxCNC support object in list" \
"build LinuxCNC first or set LINUXCNC_ROOT to a built tree"