Cover V05, I10
Article
Listing 1
Listing 2
Listing 3
Listing 4
Listing 5

oct96.tar


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