summaryrefslogtreecommitdiffstats
path: root/site
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-21 00:19:58 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-21 00:19:58 (EST)
commitf8953319283675e680f8f733437778668c23b3c0 (patch)
tree33f279afe6427bebeb014d94a80e214e1fdf9806 /site
parent144564ea5f8e208402eabab1bd7dc9d15a988e28 (diff)
downloadlibreboot.org-f8953319283675e680f8f733437778668c23b3c0.zip
libreboot.org-f8953319283675e680f8f733437778668c23b3c0.tar.gz
libreboot.org-f8953319283675e680f8f733437778668c23b3c0.tar.bz2
Move backup git repositories to an array in variables.php
Diffstat (limited to 'site')
-rw-r--r--site/download/index.php36
-rw-r--r--site/variables.template.php10
2 files changed, 35 insertions, 11 deletions
diff --git a/site/download/index.php b/site/download/index.php
index 5315611..4cadfb2 100644
--- a/site/download/index.php
+++ b/site/download/index.php
@@ -95,19 +95,35 @@
Firmware: $ <b>git clone <?php echo $lbFirmwareGitRepoAddress; ?></b><br/>
Website: $ <b>git clone <?php echo $lbWebsiteGitRepoAddress; ?></b>
</p>
- <h3>Backup repositories</h3>
- <p>
- These are backup repositories, in case the main repository is down.
- Although these are regularly updated by the libreboot project, you
- should ideally use the main repository.
- </p>
+ <h2>Backup repositories</h2>
+ <p>
+ These are backup repositories, in case the main repository is down.
+ Although these are regularly updated by the libreboot project, you
+ should ideally use the main repository.
+ </p>
+
+ <h3>Libreboot firmware (coreboot distribution)</h3>
<p>
- Firmware: $ <b>git clone https://gitorious.org/libreboot-backup/libreboot.git</b><br/>
- Website: $ <b>git clone https://gitorious.org/libreboot-backup/libreboot-website.git</b>
+<?php
+ for ($server=0; $server<count($lbFirmwareBackupGitRepoAddress); $server++) {
+?>
+ $ <b>git clone <?php echo $lbFirmwareBackupGitRepoAddress[$server]; ?></b>
+ <?php if ($server!=count($lbFirmwareBackupGitRepoAddress)-1) echo "<br/>"; ?>
+<?php
+ }
+?>
</p>
+
+ <h3>Libreboot website</h3>
<p>
- Firmware: $ <b>git clone git://git.pehjota.net/libreboot-backup/libreboot.git</b><br/>
- Website: $ <b>git clone git://git.pehjota.net/libreboot-backup/libreboot.org.git</b>
+<?php
+ for ($server=0; $server<count($lbWebsiteBackupGitRepoAddress); $server++) {
+?>
+ $ <b>git clone <?php echo $lbWebsiteBackupGitRepoAddress[$server]; ?></b>
+ <?php if ($server!=count($lbWebsiteBackupGitRepoAddress)-1) echo "<br/>"; ?>
+<?php
+ }
+?>
</p>
</div>
diff --git a/site/variables.template.php b/site/variables.template.php
index d34bf0e..7ea1380 100644
--- a/site/variables.template.php
+++ b/site/variables.template.php
@@ -3,10 +3,18 @@
$lbFirmwareGitRepoAddress = "http://libreboot.org/libreboot.git";
$lbFirmwareGitwebAddress = "http://libreboot.org/gitweb/?p=libreboot.git";
-
$lbWebsiteGitRepoAddress = "http://libreboot.org/libreboot.org.git";
$lbWebsiteGitwebAddress = "http://libreboot.org/gitweb/?p=libreboot.org.git";
+ $lbFirmwareBackupGitRepoAddress = array(
+ "https://gitorious.org/libreboot-backup/libreboot.git",
+ "git://git.pehjota.net/libreboot-backup/libreboot.git"
+ );
+ $lbWebsiteBackupGitRepoAddress = array(
+ "https://gitorious.org/libreboot-backup/libreboot-website.git",
+ "git://git.pehjota.net/libreboot-backup/libreboot.org.git"
+ );
+
$lbBugTrackerAddress = "http://projects.mtjm.eu/projects/libreboot";
$userMailingListAddress = "https://lists.nongnu.org/mailman/listinfo/libreboot";