source: gli/trunk/fli.sh@ 15014

Last change on this file since 15014 was 15014, checked in by davidb, 14 years ago

Adjustment to fli.sh start-up script so it can distinguishes between Fedora v2.x or Fedora v3.x

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/sh
2
3if [ "$glilang" = "es" ]; then
4 PROGNAME="Biblioteca Digital Fedora"
5elif [ "$glilang" = "fr" ]; then
6 PROGNAME="Bibliothécaire Fedora"
7elif [ "$glilang" = "ru" ]; then
8 PROGNAME="ÉÎÔÅÒÆÅÊÓ Fedora"
9else
10 PROGNAME="Fedora Librarian Interface"
11fi
12export PROGNAME
13
14PROGNAME_EN="Fedora Librarian Interface"
15export PROGNAME_EN
16
17PROGABBR="FLI"
18export PROGABBR
19
20
21
22# Test to see if FEDORA environment variables have been set up
23if [ "x$FEDORA2_HOME" != "x" ]; then
24 if [ -d "$FEDORA2_HOME" ]; then
25 export FEDORA_HOME=$FEDORA2_HOME
26 ./gli.sh -fedora_home "$FEDORA2_HOME" $*
27 else
28 echo "Error: Cannot find Fedora-2 home: Not such directory $FEDORA2_HOME"
29 exit
30 fi
31else
32 # Test to see if FEDORA environment variables have been set up
33 if [ "x$FEDORA3_HOME" = "x" ]; then
34 echo "Error: Cannot find Fedora-3 home. Have set the environment variable 'FEDORA3_HOME' ?"
35 exit
36 fi
37 if [ ! -d "$FEDORA3_HOME" ]; then
38 echo "Error: Cannot find Fedora-3 home: Not such directory $FEDORA3_HOME"
39 exit
40 fi
41
42 export FEDORA_HOME=$FEDORA3_HOME
43 ./gli.sh -fedora_home "$FEDORA3_HOME" $*
44fi
45
46
47
48
49
Note: See TracBrowser for help on using the repository browser.