Source

css / env.sh

#!/bin/sh -u
#
# Set up user environment to use the CSS tools.
#	- Cameron Simpson <cs@zip.com.au> 09jun2005
#

: ${OPTCSS:=/opt/css}
: ${HOSTNAME:=`hostname`}
: ${HOST:=`echo "$HOSTNAME" | sed 's/\..*//'`}
: ${HOSTDOMAIN:=`echo "$HOSTNAME" | sed 's/[^.]*\.//'`}
[ -n "$HOSTDOMAIN" ] || HOSTDOMAIN=localdomain
: ${USER:=`whoami`}
: ${SITENAME:=$HOSTDOMAIN}
: ${MAILDOMAIN:=$SITENAME}
: ${EMAIL:="$USER@$MAILDOMAIN"}
: ${PATH:=/usr/bin:/bin}
: ${MANPATH:=/usr/man:/usr/share/man}
: ${CLASSPATH:=/usr/lib/jre/lib}

: ${OS:=''}
case "`uname -sr`" in
  SunOS\ [56789].\*)  OS=solaris ;;
  SunOS\ \*)          OS=sunos ;;
  Linux\ \*)          OS=linux ;;
esac

PATH=$PATH:$OPTCSS/bin:/sbin:/usr/sbin
MANPATH=$MANPATH:$OPTCSS/man
PERL5LIB=${PERL5LIB:+"$PERL5LIB:"}$OPTCSS/lib
CLASSPATH=${CLASSPATH:+"$CLASSPATH:"}$OPTCSS/lib/au.com.zip.cs.jar
PYTHONPATH=${PYTHONPATH:+"$PYTHONPATH:"}$OPTCSS/lib

export PATH MANPATH PERL5LIB HOST HOSTNAME HOSTDOMAIN MAILDOMAIN USER SITENAME EMAIL CLASSPATH PYTHONPATH OS
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.