~evergreen-bugs/evergreen/rel_3_11

« back to all changes in this revision

Viewing changes to Open-ILS/updates/manualupdate.html

  • Committer: phasefx
  • Date: 2010-08-24 19:04:20 UTC
  • Revision ID: git-v1:53a0bd89fe11176c309b6bcf7f812e3bb60b1283
Staff Client Build/Update Enhancements patch from Thomas Berezansky

Among other things, allows cross-compilation of Windows installers from Unix environments via NSIS, and enables Mozilla's upgrade mechanism for performing upgrades without needing to download and execute external files.

See https://bugs.launchpad.net/evergreen/+bug/616452/ for more details.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17330 dcc99617-32d9-48b4-a31d-7c20da2025e4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
echo "Content-Type: text/html"
 
3
echo ""
 
4
if [ -f ../patch/manual.html ]; then
 
5
        cat ../patch/manual.html
 
6
        exit
 
7
fi
 
8
cat <<ENDHEADER
 
9
<html>
 
10
<head>
 
11
<title>Evergreen Staff Client</title>
 
12
</head>
 
13
<body>
 
14
<h1>Evergreen Staff Client</h1>
 
15
ENDHEADER
 
16
if [ -f ../patch/win/VERSION ]; then
 
17
        echo "<h2>Windows</h2>"
 
18
        VERSION=$(cat ../patch/win/VERSION)
 
19
        if [ -f clients/${VERSION}_setup.exe ]; then
 
20
                echo "<p>An installer for Windows is available.</p>"
 
21
                echo "<p><a href=\"clients/${VERSION}_setup.exe\">Click here to download the installer (version $VERSION)</a></p>"
 
22
        else
 
23
                echo "<p>No installer is currently available for Windows.</p>"
 
24
        fi
 
25
fi
 
26
if [ -f ../patch/lin/VERSION ]; then
 
27
        echo "<h2>Linux</h2>"
 
28
        VERSION=$(cat ../patch/lin/VERSION)
 
29
        if [ -f clients/${VERSION}.tar.bz2 ]; then
 
30
                echo "<p>A bundle for Linux is available.</p>"
 
31
                echo "<p><a href=\"clients/${VERSION}.tar.bz2\">Click here to download the bundle (version $VERSION)</a></p>"
 
32
        else
 
33
                echo "<p>No bundle is currently available for Linux.</p>"
 
34
        fi
 
35
fi
 
36
if [ -f ../patch/VERSION ]; then
 
37
        echo "<h2>XULRunner App Bundle</h2>"
 
38
        VERSION=$(cat ../patch/VERSION)
 
39
        if [ -f clients/${VERSION}_client.xpi ]; then
 
40
                echo "<p>A XULRunner app bundle is available.</p>"
 
41
                echo "<p><a href=\"download/${VERSION}_client.xpi\">Click here to download the XULRunner app bundle (version $VERSION)</a></p>"
 
42
                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>"
 
43
        else
 
44
                echo "<p>No XULRunner app bundle is currently available.</p>"
 
45
        fi
 
46
        echo "<h2>Firefox Extension</h2>"
 
47
        if [ -f ${VERSION}_extension.xpi ]; then
 
48
                echo "<p>A Firefox Extension is available.</p>"
 
49
                echo "<p><a href=\"${VERSION}_extension.xpi\">Click here to install the extension (version $VERSION)</a>"
 
50
        else
 
51
                echo "<p>No Firefox Extension is currently available.</p>"
 
52
        fi
 
53
fi
 
54
cat <<ENDFOOTER
 
55
</body>
 
56
</html>
 
57
ENDFOOTER