#!/usr/bin/env sh
# 安装后自检脚本：逐条执行验证命令，任一失败即退出
set -e
DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
"$DIR/bin/rcl" --version
"$DIR/bin/rcl" doctor
"$DIR/bin/rcl" check "$DIR/examples/hello-reality/main.rcl"
"$DIR/bin/rcl" robust "$DIR/examples/4r-validation/main.rcl"
echo "[rcl] 自检全部通过"
