Files
qt-migration-copilot-demo/scripts/run-entire-copilot-migration-two.sh
T

35 lines
658 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
PROJECT_DIR="${1:-qt5-before/qt5-legacy-migration-benchmark}"
COPILOT_MODEL="${2:-qwen3.5-397b-a17b}"
need_cmd() {
command -v "$1" >/dev/null 2>&1 || {
echo "ERROR: '$1' not found in PATH." >&2
exit 1
}
}
need_cmd entire
need_cmd copilot
need_cmd git
echo
echo "== Git status after Copilot session =="
git status --short
git add .
if git diff --cached --quiet; then
echo "No changes to commit."
exit 0
fi
git commit -m "migrate: Qt5/C++11 app to Qt6/C++23 with tests and modern Qt APIs"
echo
echo "== Checkpoints nach der Session =="
entire checkpoint list
entire checkpoint explain HEAD || true