1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#!/bin/sh
prefix=/usr
Y_PLATFORM=.
Y_SITE=.
Y_HOME=.
# -------------- DO NOT CHANGE THIS LINE OR BELOW -----------------------
# ysite.sh -- $Id$
# the install.sh script sources this script in order to set the
# Y_SITE and Y_HOME variables that determine where the architecture
# independent and dependent parts of yorick will be installed
# you can:
# (1) set Y_SITE, Y_HOME, and Y_PLATFORM to ".",
# and prefix to an absolute pathname (usually /usr or /usr/local)
# to get
# Y_SITE=$prefix/share/yorick/$Y_VERSION
# Y_HOME=$prefix/lib/yorick/$Y_VERSION
# (2) set Y_SITE and Y_HOME to ".",
# prefix to an absolute pathname, and Y_PLATFORM to an
# architecture name (e.g.- linux86, compaq, sunos, etc)
# to get
# Y_SITE=$prefix/yorick/$Y_VERSION
# Y_HOME=$prefix/yorick/$Y_VERSION/$Y_PLATFORM
# (3) set Y_HOME and prefix to ".",
# Y_SITE to an absolute pathname or to ".", and Y_PLATFORM to an
# architecture name (e.g.- linux86, compaq, sunos, etc)
# to get
# Y_HOME=$Y_SITE/$Y_PLATFORM
# (4) set both Y_SITE and Y_HOME to absolute pathnames
# an "absolute pathname" begins with / and does NOT include a trailing /
# the remainder of this script sets the values of Y_SITE and Y_HOME
# according to (1-5) above so it can be sourced by install.sh
if test "$Y_SITE" = "."; then
if test "$Y_HOME" = "."; then
if test "$prefix" != "."; then
# prefix meaningful only if neither Y_SITE nor Y_HOME set
if test "$Y_PLATFORM" = "."; then
Y_SITE=$prefix/share/yorick/$VERSION
Y_HOME=$prefix/lib/yorick/$VERSION
else
Y_SITE=$prefix/yorick/$VERSION
fi
fi
else
Y_SITE=$Y_HOME
fi
else
if test "$Y_HOME" = "."; then
if test "$Y_PLATFORM" = "."; then
Y_HOME=$Y_SITE
fi
fi
fi
# when Y_PLATFORM set, ignore any other definition of Y_HOME
if test "$Y_PLATFORM" != "."; then
Y_HOME=$Y_SITE/$Y_PLATFORM
fi
|