Skip to content

Instantly share code, notes, and snippets.

@donnaken15
Created February 24, 2026 09:48
Show Gist options
  • Select an option

  • Save donnaken15/eb96309395b79786c7ff428dd4822e16 to your computer and use it in GitHub Desktop.

Select an option

Save donnaken15/eb96309395b79786c7ff428dd4822e16 to your computer and use it in GitHub Desktop.
Clone Google Code Archive SVN to Git repo (CMD+MSYS+Git)
@echo off
set "reponame=%~1"
if [%1]==[] set /p "reponame=Repo name: "
echo Downloading
svnadmin create "%reponame%" && ^
curl -LSf "https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/%reponame%/repo.svndump.gz" | ^
tee "%reponame%.svndump.gz" | gzip -cd | svnadmin load "%reponame%" || del /s/q "%reponame%\*"
start "" "https://code.google.com/archive/p/%reponame%/source/default/commits"
echo.>"%reponame%-authors.txt"
dos2unix "%reponame%-authors.txt"
start "" notepad "%reponame%-authors.txt"
echo Setup %reponame%-authors.txt file using the authors listed at the opened webpage.
echo Continue when done.
pause
set "hatelinux=%CD:\=/%"
set "hatelinux=%hatelinux:~3%"
git svn clone --stdlayout -A "%reponame%-authors.txt" -- "file:///%CD:~0,1%/%hatelinux%/%reponame%" "%reponame%_git"
:: STUPID POS BUILT ON MSYS
#!/bin/zsh
# COPY TO A TERMINAL, IT'S NOT WORKING AS IT'S OWN SCRIPT BECAUSE FOSS SUCKS
c="[]"; for i in {1..9}; do c="$(curl -LsSf "https://storage.googleapis.com/storage/v1/b/google-code-archive/o/v2%2Fcode.google.com%2Ffuji%2Fcommits-page-$i.json?alt=media&stripTrailingSlashes=false" | jq --argjson c "$c" -c "$c + .commits")"; done; jq -nrc --argjson c "$c" '$c[].author' | sort -u
@donnaken15
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment