#!/bin/bash echo "Content-Type: text/html" echo "" if [ -f ../patch/manual.html ]; then cat ../patch/manual.html exit fi cat < Evergreen Staff Client

Evergreen Staff Client

ENDHEADER if [ -f ../patch/win/VERSION ]; then echo "

Windows

" VERSION=$(cat ../patch/win/VERSION) if [ -f clients/${VERSION}_setup.exe ]; then echo "

An installer for Windows is available.

" echo "

Click here to download the installer (version $VERSION)

" else echo "

No installer is currently available for Windows.

" fi fi if [ -f ../patch/lin/VERSION ]; then echo "

Linux

" VERSION=$(cat ../patch/lin/VERSION) if [ -f clients/${VERSION}.tar.bz2 ]; then echo "

A bundle for Linux is available.

" echo "

Click here to download the bundle (version $VERSION)

" else echo "

No bundle is currently available for Linux.

" fi fi if [ -f ../patch/VERSION ]; then echo "

XULRunner App Bundle

" VERSION=$(cat ../patch/VERSION) if [ -f clients/${VERSION}_client.xpi ]; then echo "

A XULRunner app bundle is available.

" echo "

Click here to download the XULRunner app bundle (version $VERSION)

" echo "

This bundle can be installed via the --install-app command on xulrunner itself and should be compatible with all platforms XULRunner runs on.

" else echo "

No XULRunner app bundle is currently available.

" fi echo "

Firefox Extension

" if [ -f ${VERSION}_extension.xpi ]; then echo "

A Firefox Extension is available.

" echo "

Click here to install the extension (version $VERSION)" else echo "

No Firefox Extension is currently available.

" fi fi cat < ENDFOOTER