commit 559b3dd718a4da351f8020f96646cedb153b10f6 Author: nico wellpott Date: Mon Jun 7 17:12:01 2021 +0200 initial commit + initial svn migration rebase script diff --git a/svnmigrate.sh b/svnmigrate.sh new file mode 100644 index 0000000..5535474 --- /dev/null +++ b/svnmigrate.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +REPOS=(skript scare scare2) +BASE_PATH="/home/user/nwellpott/svnMigration" + +for REPO in "${REPOS[@]}"; do + # change dir + /usr/bin/printf "changing directory to %s\n" "$REPO" + cd "$BASE_PATH/$REPO" || exit 1 + + # rebase + /usr/bin/printf "attempt to fetch %s commits\n" "$REPO" + /usr/bin/svn2git --rebase + + # push changes + # /usr/bin/git push --all +done