Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/bash
set -e
${SUDO} halcompile --install userspace_count_names.comp
INSTALLED_FILE="${EMC2_HOME}/bin/userspace_count_names"
if [[ ! -f "${INSTALLED_FILE}" ]]; then
echo "'halcompile --install' did not install '${INSTALLED_FILE}'"
exit 1
fi
MODE=$(stat --printf '%#03a\n' "${INSTALLED_FILE}")
if [[ $((MODE & 0111)) == '0' ]]; then
echo "installed file '${INSTALLED_FILE}' has incorrect permissions"
echo "expected *some* execute bit, got ${MODE}"
exit 1
fi
for HAL in *.hal; do
echo "testing $HAL"
BASE=$(basename "$HAL" .hal)
halrun "$HAL" | tr ' ' '\n' >| "$BASE".result
done