Listing 5: setvar
#! /bin/bash -
# FILENAME: setvar
# Initializes local variables for web management tools
#
# Luca Salvadori 1996
#
# Local variables initialization.
BASEDIR=~truser/public_html/work # Base scratch directory
HTDOCS="/usr/local/etc/httpd/docs" # Base httpd directory (see httpd
configuration files)
BASE_LANG="it" # Base language of website (national)
OTHER_LANG="en" # Other language supported
TEMP="/tmp" # Directory for temp files
IT=$HTDOCS/it # Base directory for language nr. 1
EN=$HTDOCS/en # Base directory for language nr. 2
PATH=$PATH:$BASEDIR/scripts # Adding stuff to path
|