Commit 24f9c175627a7ce8a58ab2da6e29b523a1257eed:
A tool that helps with initial setup
Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>
------------------------------------------------------------
tools/svninfo.rb | +++++++++++
------------------------------------------------------------
21 changes: 21 additions, 0 deletions.
------------------------------------------------------------
diff --git a/tools/svninfo.rb b/tools/svninfo.rb
new file mode 100644
index 0000000..78cc3c9
--- /dev/null
+++ b/tools/svninfo.rb
@@ -0,0 +1,21 @@
+#
+# Produce the set of commands that would recreate the current svn checkouts
+#
+
+Dir.chdir '/srv/svn'
+
+Dir['*'].sort.each do |name|
+ if Dir.exist? name
+ Dir.chdir name do
+ url = `svn info`[/URL: (.*)/, 1]
+
+ if Dir['*/*'].empty?
+ depth = ' --depth=files'
+ else
+ depth = ''
+ end
+
+ puts "svn checkout#{depth} #{url} #{name}"
+ end
+ end
+end