09de1b6bebd0a6a8207e0d7e22dd33dddce665c1
[working/Evergreen.git] / Open-ILS / updates / manualupdate.html
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