Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bug 566820. update nightly.mozilla.org stuff. r=blizzard

  • Loading branch information...
commit ae26b036b4da828dfceb950d9627c59ee85a918e 1 parent 62edc99
@sayrer sayrer authored
Showing with 44 additions and 1 deletion.
  1. +12 −1 scrape.py
  2. +32 −0 webm.html
View
13 scrape.py
@@ -95,9 +95,12 @@ def buildHTML(builds):
footer = """
</ul>
-
+
<p>We have <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk">more stuff</a> if you don't see what you're looking for.</p>
+ <p>Oh, and here are the <a href="http://nightly.mozilla.org/webm">WebM builds</a>.</p>
+
+
</body>
</html>"""
@@ -125,6 +128,10 @@ def copyFile(output_dir, fileName):
resource_path = os.path.split(path_to_this_script)[0]
shutil.copyfile(os.path.join(resource_path, fileName), os.path.join(output_dir, fileName))
+def copyFileWithName(inputFile, output_dir, fileName):
+ resource_path = os.path.split(path_to_this_script)[0]
+ shutil.copyfile(os.path.join(resource_path, inputFile), os.path.join(output_dir, fileName))
+
def main():
optparser = OptionParser(usage=usage_example)
optparser.add_option("--output-dir", action="store", dest="output_path",
@@ -143,6 +150,10 @@ def main():
writeOutput(options.output_path, "index.json", buildJSON(parser.builds))
copyFile(options.output_path, "firefox.png")
copyFile(options.output_path, "nightly.css")
+ webm_dir = os.path.join(options.output_path, "webm")
+ if not os.path.exists(webm_dir):
+ os.mkdir(webm_dir)
+ copyFileWithName("webm.html", webm_dir, "index.html")
if __name__ == '__main__':
main()
View
32 webm.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Firefox Nightly Builds</title>
+ <link rel="stylesheet" type="text/css" href="http://www.mozilla.com/style/tignish/template.css" />
+ <link rel="stylesheet" type="text/css" href="http://www.mozilla.com/style/tignish/content.css" />
+ <link rel="stylesheet" type="text/css" href="nightly.css" />
+ </head>
+ <body>
+
+ <div id="main-feature">
+ <h1>Firefox WebM Builds</h1>
+ <p>These builds are for testing purposes only.</p>
+ </div>
+ <ul>
+
+<li class="windows zip">
+<a href="http://download.mozilla.org/?product=devpreview-1.9.3a4webm&os=win&lang=en-US">Windows</a> 8MB installer<br>
+
+<small>Built on 19-May-2010</small>
+
+<li class="mac dmg">
+<a href="http://download.mozilla.org/?product=devpreview-1.9.3a4webm&os=osx&lang=en-US">Mac</a> 19MB dmg<br>
+<small>Built on 19-May-2010</small>
+
+<li class="linux bz2">
+<a href="http://download.mozilla.org/?product=devpreview-1.9.3a4webm&os=linux&lang=en-US">Linux Intel</a> 11MB tar.bz2<br>
+<small>Built on 19-May-2010</small>
+
+ </ul>
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.