Rehost all our dependencies which Bazel fetches on software.frc971.org
This won't get the git repositories or anything like that, but this is
definately progress.
Add a script to rehost easily and safely. This script won't overwrite
anything already there, which is nice.
Change-Id: I519dbaed50c6d620b300e6ad2e76aa04e062acda
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/tools/dependency_rewrite b/tools/dependency_rewrite
new file mode 100644
index 0000000..3cafe9b
--- /dev/null
+++ b/tools/dependency_rewrite
@@ -0,0 +1,11 @@
+# Use tools/rehost.sh to rehost easily.
+
+block *
+rewrite github.com/(.*) software.frc971.org/Build-Dependencies/github.com/$1
+rewrite dl.google.com/(.*) software.frc971.org/Build-Dependencies/dl.google.com/$1
+rewrite mirror.bazel.build/(.*) software.frc971.org/Build-Dependencies/mirror.bazel.build/$1
+rewrite nodejs.org/(.*) software.frc971.org/Build-Dependencies/nodejs.org/$1
+allow golang.org
+
+allow software.frc971.org
+allow www.frc971.org