Return-Path: X-Original-To: apmail-aurora-commits-archive@minotaur.apache.org Delivered-To: apmail-aurora-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05A72199F9 for ; Thu, 14 Apr 2016 14:08:17 +0000 (UTC) Received: (qmail 65902 invoked by uid 500); 14 Apr 2016 14:08:17 -0000 Delivered-To: apmail-aurora-commits-archive@aurora.apache.org Received: (qmail 65869 invoked by uid 500); 14 Apr 2016 14:08:16 -0000 Mailing-List: contact commits-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list commits@aurora.apache.org Received: (qmail 65860 invoked by uid 99); 14 Apr 2016 14:08:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 14:08:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1F8C81A01CD for ; Thu, 14 Apr 2016 14:08:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rMj6p7Yii2x3 for ; Thu, 14 Apr 2016 14:08:12 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7831C5F33E for ; Thu, 14 Apr 2016 14:08:12 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A2F17E0054 for ; Thu, 14 Apr 2016 14:08:11 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id BED563A0216 for ; Thu, 14 Apr 2016 14:08:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1739110 - /aurora/site/Rakefile Date: Thu, 14 Apr 2016 14:08:10 -0000 To: commits@aurora.apache.org From: jsirois@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160414140810.BED563A0216@svn01-us-west.apache.org> Author: jsirois Date: Thu Apr 14 14:08:10 2016 New Revision: 1739110 URL: http://svn.apache.org/viewvc?rev=1739110&view=rev Log: Fix generate_docs[latest,master] handling. Modified: aurora/site/Rakefile Modified: aurora/site/Rakefile URL: http://svn.apache.org/viewvc/aurora/site/Rakefile?rev=1739110&r1=1739109&r2=1739110&view=diff ============================================================================== --- aurora/site/Rakefile (original) +++ aurora/site/Rakefile Thu Apr 14 14:08:10 2016 @@ -67,14 +67,18 @@ task :generate_docs, [:title, :git_tag] #Rake::Task[:clean].invoke if File.exist?(tmp_dir) FileUtils.mkdir_p(tmp_dir) - archive_root = "aurora-rel-#{git_tag}" + + zip_name = "#{git_tag}.zip" + is_master = ['master', 'HEAD'].include? git_tag + archive_root = if is_master then "aurora-#{git_tag}" else "aurora-rel-#{git_tag}" end + archive_rel_url = if is_master then zip_name else "rel/#{zip_name}" end + Dir.chdir(tmp_dir) { - zip_name = "#{git_tag}.zip" - if File.exist?(zip_name) and not ['master', 'HEAD'].include? git_tag + if File.exist?(zip_name) and not is_master puts 'Skipping archive fetch' else puts "Fetching archive of #{git_tag}" - system("wget https://github.com/apache/aurora/archive/rel/#{zip_name} -O #{zip_name}") + system("wget https://github.com/apache/aurora/archive/#{archive_rel_url} -O #{zip_name}") end system("unzip -o #{zip_name} '#{archive_root}/docs/*'") }