www/nightly.adium.im 8:c8677b6f682f: Adding latest.php
commits at adium.im
commits at adium.im
Wed Jul 27 18:02:56 UTC 2011
details: http://hg.adium.im/www/nightly.adium.im/rev/c8677b6f682f
revision: 8:c8677b6f682f
branch: (none)
author: Colin Barrett <colin at springsandstruts.com>
date: Wed Jul 27 11:02:53 2011 -0700
Adding latest.php
diffs (21 lines):
diff -r 4f15421a6263 -r c8677b6f682f latest.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/latest.php Wed Jul 27 11:02:53 2011 -0700
@@ -0,0 +1,17 @@
+<?php
+ define("NIGHTLY_CACHE", "latest.info");
+
+ // Offsets by line in the build file:
+ define("FILENAME", 0);
+ define("REVISION", 1);
+ define("MD5", 2);
+ define("SIZE", 3);
+ define("VERSION", 4);
+ define("DSA", 5);
+
+ // file() keeps the newlines, we don't want them. Instead, use file_get_contents and explode it.
+ $nightlyData = explode("\n", file_get_contents(NIGHTLY_CACHE));
+
+ // The address to download the nightly.
+ header(sprintf("Location: %s.dmg", $nightlyData[FILENAME]));
+?>
More information about the commits
mailing list