Skip to content

Commit 7a853f9

Browse files
author
jantje
committed
Using globals.txt to set stable version
1 parent ad33f02 commit 7a853f9

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

website/WebContent/nightly.php

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22
require 'fragments/file-buttons.php';
3-
$version = "4.1";
3+
include 'globals.txt';
4+
$version = $STABLE_VERSION_MAJOR . "." . $STABLE_VERSION_MINOR;
45

56
if (isset ( $_GET ["OS"] ))
6-
$OS = $_GET ["OS"];
7-
$os =strtolower ( $OS );
8-
if($os!="linux")
9-
{
10-
$os = substr ( $os, 0, 3 );
11-
}
12-
?>
7+
$OS = $_GET ["OS"];
8+
$os =strtolower ( $OS );
9+
if($os!="linux")
10+
{
11+
$os = substr ( $os, 0, 3 );
12+
}
13+
?>
1314

1415
<!DOCTYPE html>
1516
<html lang="en">
@@ -62,10 +63,9 @@
6263
away right after launching it!</p>
6364
<P>And probably worse: The nightly is the playground of the contributors.
6465
No testing has been done, no validation has been done.</P>
66+
<P>In contrast to the stable the nightly product downloads do not contain a java run time.</P>
6567

6668

67-
68-
If you have download issues try another browser. Firefox seems to work fine on all oses. chrome seems to have issues.<br>
6969
<h2>Some recent changes:</h2>
7070
<p>Due to a DDos attack I needed to move files around. As a consequence I no longer offer a list of latest nightlies.</p>
7171
<p><a href="https://oss.sonatype.org/content/repositories/snapshots/com/github/brodykenrick/arduino-eclipse-plugin/io.sloeber.product/4.1.0-SNAPSHOT/" target="_blank">
@@ -76,12 +76,14 @@
7676

7777

7878
<h3>Eclipse Update Site</h3>
79-
<p>Alternatively you can get the latest nightly build by setting the following update site within an existing Eclipse CDT installation</p>
79+
<p>Alternatively you can get the latest nightly build by setting the following update site within an existing Sloeber installation.</p>
8080
<p>You can not upgrade from V3 to V4!!!!</p>
81-
<p>Even worse: you can install V3 and V4 in the same eclips installation causing all kind of wierd side effects. So don't do it</p>
81+
<p>Even worse: you can install V3 and V4 in the same eclipse installation causing all kind of wierd side effects. So don't do it</p>
8282
<div class="row">
8383
<div class="col-md-4 col-md-offset-4">
84-
<div class="well text-center">http://eclipse.baeyens.it/update/V4/nightly</div>
84+
<?php
85+
echo '<div class="well text-center">http://eclipse.baeyens.it/update/V'.$STABLE_VERSION_MAJOR."/nightly</div>";
86+
?>
8587
</div>
8688
</div>
8789
<p>Watch these movies to get a quick start:</p>

website/WebContent/stable.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
require 'fragments/file-buttons.php';
33
include 'globals.txt';
4-
$version = $STABLE_VERSION_MAJOR."."$STABLE_VERSION_MINOR;
4+
$version = $STABLE_VERSION_MAJOR.".".$STABLE_VERSION_MINOR;
55

66
if (isset ( $_GET ["OS"] ))
7-
$OS = $_GET ["OS"];
8-
$os = strtolower ( substr ( $OS, 0, 3 ) );
9-
?>
7+
$OS = $_GET ["OS"];
8+
$os = strtolower ( substr ( $OS, 0, 3 ) );
9+
?>
1010

1111
<!DOCTYPE html>
1212
<html lang="en">
@@ -56,10 +56,10 @@
5656
bundles in one single download a complete setup including a stable
5757
version of the Eclipse CDT and the latest stable build of our great
5858
Arduino eclipse IDE!</p>
59-
<?php if($os=="win"){echo "<p>It even includes java.</p>";}; ?>
6059
<p>This is also the only supported setup!</p>
60+
<?php if($os=="win"){echo "<p>It even includes java.</p>";}; ?>
6161

62-
62+
If you have download issues try another browser. Firefox seems to work fine on all oses. chrome seems to have issues.
6363
<div class="row">
6464
<?php
6565
listFiles("V" . $version . '_' . $os);?>
@@ -76,7 +76,7 @@
7676
<div class="row">
7777
<div class="col-md-4 col-md-offset-4">
7878
<?php
79-
echo"<div class="well text-center">http://eclipse.baeyens.it/update/V$STABLE_VERSION_MAJOR/stable</div>
79+
echo '<div class="well text-center">http://eclipse.baeyens.it/update/V'.$STABLE_VERSION_MAJOR.'/stable</div>';
8080
?>
8181
</div>
8282
</div>

0 commit comments

Comments
 (0)