Bugfix prjdir for entire
This commit is contained in:
1 parent
ab16e9df42
commit
b66e28193c
2 files changed
+40
-14
No files matched your search
@@ -14,17 +14,23 @@ need_cmd entire
|
|||||||
need_cmd copilot
|
need_cmd copilot
|
||||||
need_cmd git
|
need_cmd git
|
||||||
|
|
||||||
if [ ! -d "$PROJECT_DIR" ]; then
|
if ! git rev-parse --show-toplevel >/dev/null 2>&1; then
|
||||||
echo "ERROR: project directory '$PROJECT_DIR' not found." >&2
|
echo "ERROR: Dieses Skript muss innerhalb eines bestehenden Git-Repositories gestartet werden." >&2
|
||||||
|
echo "Bitte zuerst im Repo-Root 'git init' oder in einem bestehenden Repo arbeiten." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$PROJECT_DIR"
|
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||||
|
cd "$REPO_ROOT"
|
||||||
|
|
||||||
if [ ! -d .git ]; then
|
if [ ! -d "$PROJECT_DIR" ]; then
|
||||||
git init
|
echo "ERROR: project directory '$PROJECT_DIR' not found relative to repo root '$REPO_ROOT'." >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Repo root: $REPO_ROOT"
|
||||||
|
echo "Legacy project: $PROJECT_DIR"
|
||||||
|
|
||||||
entire agent add copilot-cli
|
entire agent add copilot-cli
|
||||||
entire status
|
entire status
|
||||||
|
|
||||||
@@ -35,16 +41,18 @@ else
|
|||||||
git commit -m "baseline: Qt5/C++11 legacy benchmark before Qt6/C++23 migration"
|
git commit -m "baseline: Qt5/C++11 legacy benchmark before Qt6/C++23 migration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "== Checkpoints vor der Session =="
|
||||||
entire checkpoint list
|
entire checkpoint list
|
||||||
|
|
||||||
cat <<'PROMPT'
|
cat <<PROMPT
|
||||||
|
|
||||||
Use this prompt in Copilot CLI:
|
Use this prompt in Copilot CLI:
|
||||||
|
|
||||||
Migrate the legacy Qt5/C++11 desktop application to Qt6/C++23.
|
Migrate the legacy Qt5/C++11 desktop application to Qt6/C++23.
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
- Read the legacy source project from qt5-before/qt5-legacy-migration-benchmark
|
- Read the legacy source project from ${PROJECT_DIR}
|
||||||
- Write the migrated project into qt6-after/qt6-migrated-benchmark
|
- Write the migrated project into qt6-after/qt6-migrated-benchmark
|
||||||
- Do not modify the legacy source tree in place
|
- Do not modify the legacy source tree in place
|
||||||
- Update CMake from Qt5 to Qt6
|
- Update CMake from Qt5 to Qt6
|
||||||
@@ -66,6 +74,8 @@ PROMPT
|
|||||||
|
|
||||||
copilot
|
copilot
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "== Git status after Copilot session =="
|
||||||
git status --short
|
git status --short
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
@@ -75,6 +85,8 @@ else
|
|||||||
git commit -m "migrate: Qt5/C++11 app to Qt6/C++23 with tests and modern Qt APIs"
|
git commit -m "migrate: Qt5/C++11 app to Qt6/C++23 with tests and modern Qt APIs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "== Checkpoints nach der Session =="
|
||||||
entire checkpoint list
|
entire checkpoint list
|
||||||
entire checkpoint explain HEAD || true
|
entire checkpoint explain HEAD || true
|
||||||
|
|
||||||
|
|||||||
@@ -14,17 +14,23 @@ need_cmd entire
|
|||||||
need_cmd copilot
|
need_cmd copilot
|
||||||
need_cmd git
|
need_cmd git
|
||||||
|
|
||||||
if [ ! -d "$PROJECT_DIR" ]; then
|
if ! git rev-parse --show-toplevel >/dev/null 2>&1; then
|
||||||
echo "ERROR: project directory '$PROJECT_DIR' not found." >&2
|
echo "ERROR: Dieses Skript muss innerhalb eines bestehenden Git-Repositories gestartet werden." >&2
|
||||||
|
echo "Bitte zuerst im Repo-Root 'git init' oder in einem bestehenden Repo arbeiten." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$PROJECT_DIR"
|
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||||
|
cd "$REPO_ROOT"
|
||||||
|
|
||||||
if [ ! -d .git ]; then
|
if [ ! -d "$PROJECT_DIR" ]; then
|
||||||
git init
|
echo "ERROR: project directory '$PROJECT_DIR' not found relative to repo root '$REPO_ROOT'." >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Repo root: $REPO_ROOT"
|
||||||
|
echo "Legacy project: $PROJECT_DIR"
|
||||||
|
|
||||||
entire agent add copilot-cli
|
entire agent add copilot-cli
|
||||||
entire status
|
entire status
|
||||||
|
|
||||||
@@ -35,16 +41,18 @@ else
|
|||||||
git commit -m "baseline: Qt5/C++11 legacy benchmark before Qt6/C++23 migration"
|
git commit -m "baseline: Qt5/C++11 legacy benchmark before Qt6/C++23 migration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "== Checkpoints vor der Session =="
|
||||||
entire checkpoint list
|
entire checkpoint list
|
||||||
|
|
||||||
cat <<'PROMPT'
|
cat <<PROMPT
|
||||||
|
|
||||||
Use this prompt in Copilot CLI:
|
Use this prompt in Copilot CLI:
|
||||||
|
|
||||||
Migrate the legacy Qt5/C++11 desktop application to Qt6/C++23.
|
Migrate the legacy Qt5/C++11 desktop application to Qt6/C++23.
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
- Read the legacy source project from qt5-before/qt5-legacy-migration-benchmark
|
- Read the legacy source project from ${PROJECT_DIR}
|
||||||
- Write the migrated project into qt6-after/qt6-migrated-benchmark
|
- Write the migrated project into qt6-after/qt6-migrated-benchmark
|
||||||
- Do not modify the legacy source tree in place
|
- Do not modify the legacy source tree in place
|
||||||
- Update CMake from Qt5 to Qt6
|
- Update CMake from Qt5 to Qt6
|
||||||
@@ -66,7 +74,10 @@ PROMPT
|
|||||||
|
|
||||||
copilot
|
copilot
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "== Git status after Copilot session =="
|
||||||
git status --short
|
git status --short
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
if git diff --cached --quiet; then
|
if git diff --cached --quiet; then
|
||||||
@@ -75,5 +86,8 @@ if git diff --cached --quiet; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
git commit -m "migrate: Qt5/C++11 app to Qt6/C++23 with tests and modern Qt APIs"
|
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 list
|
||||||
entire checkpoint explain HEAD || true
|
entire checkpoint explain HEAD || true
|
||||||
Reference in new issue
Block a user