Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add migration script: scripts/migrate-top-level.sh\n\nCo-authored-by:…
… Copilot <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
cyberviser committed Feb 22, 2026
commit e0dbe78cf55b16fabb0530880ef875ff6d981cbb
31 changes: 31 additions & 0 deletions scripts/migrate-top-level.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh
set -e

# Migration helper: top-level cleanup
# Usage:
# ./scripts/migrate-top-level.sh # dry-run
# ./scripts/migrate-top-level.sh --apply # perform moves and commit

DRY_RUN=1
if [ "$1" = "--apply" ]; then
DRY_RUN=0
fi

echo "Proposed moves:"
printf " - gradio -> examples/gradio\n"

if [ $DRY_RUN -eq 1 ]; then
echo "Dry-run mode; no changes made. Run with --apply to perform the migration."
exit 0
fi

# Perform migration
mkdir -p examples
if [ -d "gradio" ]; then
git mv gradio examples/ || true
fi

git add -A
git commit -m "Migration: move gradio into examples/ (scripted)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>" || true

echo "Migration applied."