~evergreen-bugs/evergreen/rel_3_11

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
echo "Content-Type: text/html"
echo ""
if [ -f ../patch/manual.html ]; then
	cat ../patch/manual.html
	exit
fi
cat <<ENDHEADER
<html>
<head>
<title>Evergreen Staff Client</title>
</head>
<body>
<h1>Evergreen Staff Client</h1>
ENDHEADER
if [ -f ../patch/win/VERSION ]; then
	echo "<h2>Windows</h2>"
	VERSION=$(cat ../patch/win/VERSION)
	if [ -f clients/${VERSION}_setup.exe ]; then
		echo "<p>An installer for Windows is available.</p>"
		echo "<p><a href=\"clients/${VERSION}_setup.exe\">Click here to download the installer (version $VERSION)</a></p>"
	else
		echo "<p>No installer is currently available for Windows.</p>"
	fi
fi
if [ -f ../patch/lin/VERSION ]; then
	echo "<h2>Linux (32 bit)</h2>"
	VERSION=$(cat ../patch/lin/VERSION)
	if [ -f clients/${VERSION}_i686.tar.bz2 ]; then
		echo "<p>A 32 bit bundle for Linux is available.</p>"
		echo "<p><a href=\"clients/${VERSION}_i686.tar.bz2\">Click here to download the bundle (version $VERSION)</a></p>"
	else
		echo "<p>No 32 bit bundle is currently available for Linux.</p>"
	fi
fi
if [ -f ../patch/lin64/VERSION ]; then
	echo "<h2>Linux (64 bit)</h2>"
	VERSION=$(cat ../patch/lin64/VERSION)
	if [ -f clients/${VERSION}_x86_64.tar.bz2 ]; then
		echo "<p>A 64 bit bundle for Linux is available.</p>"
		echo "<p><a href=\"clients/${VERSION}_x86_64.tar.bz2\">Click here to download the bundle (version $VERSION)</a></p>"
	else
		echo "<p>No 64 bit bundle is currently available for Linux.</p>"
	fi
fi

if [ -f ../patch/VERSION ]; then
	echo "<h2>XULRunner App Bundle</h2>"
	VERSION=$(cat ../patch/VERSION)
	if [ -f clients/${VERSION}_client.xpi ]; then
		echo "<p>A XULRunner app bundle is available.</p>"
		echo "<p><a href=\"download/${VERSION}_client.xpi\">Click here to download the XULRunner app bundle (version $VERSION)</a></p>"
		echo "<p>This bundle can be installed via the --install-app command on xulrunner itself and should be compatible with all platforms XULRunner runs on.</p>"
	else
		echo "<p>No XULRunner app bundle is currently available.</p>"
	fi
	echo "<h2>Firefox Extension</h2>"
	if [ -f ${VERSION}_extension.xpi ]; then
		echo "<p>A Firefox Extension is available.</p>"
		echo "<p><a href=\"${VERSION}_extension.xpi\">Click here to install the extension (version $VERSION)</a>"
	else
		echo "<p>No Firefox Extension is currently available.</p>"
	fi
fi
cat <<ENDFOOTER
</body>
</html>
ENDFOOTER