File: svn-restore.sh

package info (click to toggle)
naga 3.0+svn80-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 472 kB
  • ctags: 609
  • sloc: java: 3,829; xml: 69; sh: 7; makefile: 4
file content (11 lines) | stat: -rwxr-xr-x 335 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

DUMP=repo.svndump.gz
DUMPURL=https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/naga/

wget -N "$DUMPURL/$DUMP"

rm -rf naga.svn naga.git
svnadmin create naga.svn
zcat "$DUMP" | svnadmin load naga.svn
git svn clone -s --rewrite-root=https://naga.googlecode.com/svn file://$PWD/naga.svn naga.git