高效率推进 LinuxCNC 源码对齐流程
说明:集中 LinuxCNC 源码清单与 wasm/native probe 的路径解析,补强 manifest、shim、source-link 检查,并保持 LinuxCNC 源码后端对齐验证流程可复用。 验证:./test-native.sh;./test-linuxcnc-source-link.sh;./test-all-native.sh;wasm source/probe 相关脚本。
This commit is contained in:
25
list-linuxcnc-source-files.sh
Executable file
25
list-linuxcnc-source-files.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc}
|
||||
|
||||
if [[ ! -d "$linuxcnc_root" ]]; then
|
||||
echo "missing LinuxCNC root: $linuxcnc_root" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$#" -eq 0 ]]; then
|
||||
echo "usage: $0 <linuxcnc-relative-source>..." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for source in "$@"; do
|
||||
full_source="$linuxcnc_root/$source"
|
||||
if [[ ! -f "$full_source" ]]; then
|
||||
echo "missing LinuxCNC source: $source" >&2
|
||||
exit 1
|
||||
fi
|
||||
printf '%s\n' "$full_source"
|
||||
done
|
||||
Reference in New Issue
Block a user