Last change
on this file since 19508 was 16466, checked in by ak19, 16 years ago |
FEDORA_VERSION has become the secondary environment variable when running FLI. It has replaced FEDORA2_HOME/FEDORA3_HOME. When running this script, if FEDORA_HOME is set but FEDORA_VERSION isn't, then FEDORA_VERSION will default to 3 with warning that this has been done.
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | if [ "$glilang" = "es" ]; then
|
---|
4 | PROGNAME="Biblioteca Digital Fedora"
|
---|
5 | elif [ "$glilang" = "fr" ]; then
|
---|
6 | PROGNAME="Bibliothécaire Fedora"
|
---|
7 | elif [ "$glilang" = "ru" ]; then
|
---|
8 | PROGNAME="ÉÎÔÅÒÆÅÊÓ Fedora"
|
---|
9 | else
|
---|
10 | PROGNAME="Fedora Librarian Interface"
|
---|
11 | fi
|
---|
12 | export PROGNAME
|
---|
13 |
|
---|
14 | PROGNAME_EN="Fedora Librarian Interface"
|
---|
15 | export PROGNAME_EN
|
---|
16 |
|
---|
17 | PROGABBR="FLI"
|
---|
18 | export PROGABBR
|
---|
19 |
|
---|
20 | echo
|
---|
21 | # Test to see if FEDORA environment variables have been set up
|
---|
22 | if [ "x$FEDORA_HOME" == "x" ]; then
|
---|
23 | echo "Error: Cannot run $PROGNAME_EN (PROGABBR) if FEDORA_HOME is not set."
|
---|
24 | exit
|
---|
25 | fi
|
---|
26 |
|
---|
27 | if [ ! -d "$FEDORA_HOME" ]; then
|
---|
28 | echo "Error: Cannot find Fedora Home. No such directory: $FEDORA_HOME"
|
---|
29 | exit
|
---|
30 | fi
|
---|
31 |
|
---|
32 | # If FEDORA_VERSION not set, default fedora-version to 3 after warning user.
|
---|
33 | if [ "x$FEDORA_VERSION" == "x" ]; then
|
---|
34 | echo "FEDORA_VERSION (major version of Fedora) was not set. Defaulting to: 3."
|
---|
35 | echo "If you are running a different version of Fedora, set the FEDORA_VERSION"
|
---|
36 | echo "environment variable."
|
---|
37 | FEDORA_VERSION="3"
|
---|
38 | export FEDORA_VERSION
|
---|
39 | echo
|
---|
40 | fi
|
---|
41 |
|
---|
42 | # Finally run GLI in fedora mode
|
---|
43 | echo "FEDORA_HOME: $FEDORA_HOME"
|
---|
44 | echo "FEDORA_VERSION: $FEDORA_VERSION"
|
---|
45 | ./gli.sh -fedora -fedora_home "$FEDORA_HOME" -fedora_version "$FEDORA_VERSION" $*
|
---|
Note:
See
TracBrowser
for help on using the repository browser.