15577: Add a way to skip SDK building to streamline doc writing
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Fri, 8 Nov 2019 16:09:13 +0000 (11:09 -0500)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Fri, 8 Nov 2019 16:10:19 +0000 (11:10 -0500)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

doc/Rakefile

index f1aa3bfce87495ced721ef499a1417afcb6c4eca..c3888c5f6949be7d76ceb78cfed97338847688f9 100644 (file)
@@ -16,6 +16,9 @@ task :generate => [ :realclean, 'sdk/python/arvados/index.html', 'sdk/R/arvados/
 end
 
 file "sdk/python/arvados/index.html" do |t|
+  if File.exists? "no-sdk"
+    next
+  end
   `which epydoc`
   if $? == 0
     STDERR.puts `epydoc --html --parse-only -o sdk/python/arvados ../sdk/python/arvados/ 2>&1`
@@ -26,6 +29,9 @@ file "sdk/python/arvados/index.html" do |t|
 end
 
 file "sdk/R/arvados/index.html" do |t|
+  if File.exists? "no-sdk"
+    next
+  end
   `which R`
   if $? == 0
     tgt = Dir.pwd
@@ -88,6 +94,9 @@ EOF
 end
 
 file "sdk/java-v2/javadoc/index.html" do |t|
+  if File.exists? "no-sdk"
+    next
+  end
   `which java`
   if $? == 0
     `which gradle`