Skip to content
Browse files

Add function to export bzr source and include link to tgz file in web…

…site.
  • Loading branch information...
1 parent 9709233 commit 38260e2de3b09b51e263f994f1ded1b6939ef558 @ananelson ananelson committed
Showing with 11 additions and 0 deletions.
  1. +10 −0 webby/Sitefile
  2. +1 −0 webby/layouts/web.txt
View
10 webby/Sitefile
@@ -31,3 +31,13 @@ end
def manual_filename
"surpass-manual-#{Surpass::VERSION.gsub(".", "-")}.pdf"
end
+
+def gzipped_source
+ bzr_version = `bzr revno ..`.strip
+ filename = "surpass-r#{bzr_version}.tgz"
+
+ # Create gzipped file
+ `bzr export output/#{filename} ..`
+
+ filename
+end
View
1 webby/layouts/web.txt
@@ -47,6 +47,7 @@ filter: erb
<ul id="nav">
<li><a href="<%= manual_filename %>">Download PDF Manual</a></li>
<li><a href="http://rubyforge.org/projects/surpass">Rubyforge Project Page</a></li>
+ <li><a href="<%= gzipped_source %>">Download Latest Source (tgz)</a></li>
</ul>
<div class="box">
<h2 style="margin-top:17px">Latest News</h2>

0 comments on commit 38260e2

Please sign in to comment.
Something went wrong with that request. Please try again.