 #!/bin/sh
 
 # folder
 # ======
 
 # Folder structure file for Gerolf Markup Shredder
 
 # Entries with a leading hash mark are disabled  for the command line and text 
 # mode interfaces of GMS only. The browser interface parses this file, it does
 # not execute it as a shell script. So the "commented out" entries must be set
 # correctly for the browser interface,  and it is not allowed to use variables 
 # other than GMS_ROOT and SRV_ROOT in it, if the directory names are not given
 # absolutely  (see setting.pm). Other  variables  are  not  recognized  by the 
 # browser interface parser.
 
 # ============================================================================
 
 # 1) GMS directories:
 
 # Server subdirectories: 
   # export GMS_ROOT_SHORT=
   # export GMS_ROOT=
 
 # Shell scripts (Unix): 
   export GMS_SHELL="$GMS_ROOT/shell"

 # Temporary files:
   export GMS_TEMP="/tmp/gms"
 
 # Template markup files:
   export GMS_TEMPLATE="$GMS_ROOT/doc"
 
 # Encoding: 
   # export SRV_ENCODING=$SRV_ROOT/data/enc
 
 # Handbook: 
   # export SRV_HANDBOOK=$SRV_ROOT/doc/handbook
  
 # Language strings: 
   # export GMS_LANGUAGE=$GMS_ROOT/data/lang
 
 # Process (must be writable for any user): 
   # export GMS_PROCESS=$GMS_ROOT/tmp
   # export SRV_PROCESS=$SRV_ROOT/tmp
 
 # Rotation of banners: 
   # export GMS_ROTATION=$GMS_ROOT/doc/rotation
 
 # Setting: 
   # export SRV_SETTING=$SRV_ROOT/etc
 
 # Style: 
   # export SRV_STYLE=$SRV_ROOT/data/css
 
 # 2) Directories for TeX engine configuration: -------------------------------
 
 # : path separator
 # / directory separator
 # // subdirectory inclusion
 
 # TeX Main Folder: 
   export TEXMF="$GMS_ROOT"
 
 # Configuration files texmf.cnf and pdftex.cfg: 
   export TEXMFCNF="$GMS_ROOT/etc"
 
 # Binaries:
   export GMS_BINARIES="$GMS_ROOT/bin/linux"
 
 # Directory to place .log files, if current directory is read-only: 
   export TEXMFOUTPUT="$GMS_ROOT/tmp"
 
 # Dump files (.fmt/.efmt) for virtex: 
   export TEXFORMATS="$GMS_BINARIES"
 
 # String pools (.pool) for initex: 
   export TEXPOOL="$GMS_BINARIES"
  
 # 3) TeX input file search: --------------------------------------------------
  
 # This must be one single directory:
   export TEX_USER="$GMS_ROOT/doc"
 
 # This is needed only during initex run (single directory): 
   export TEX_BASE="$GMS_ROOT/tex"

 # Encodings (.enc), PostScript fonts, font maps):
   export TEXPSHEADERS="$GMS_ROOT/etc":"$GMS_ROOT/data/enc":"$GMS_ROOT/fonts//"
  
 # 4) TeX font search: --------------------------------------------------------
 
 # This is needed only during initex run (single directory): 
   export GMS_FONTS="$GMS_ROOT/fonts"
   
 # TeX font metric files: 
   export TEXFONTS="$GMS_FONTS/tfm//"
 
 # TeX virtual fonts: 
   export VFFONTS="$GMS_FONTS/vf//"
 
 # PostScript Adobe metric files: 
   export AFMFONTS="$GMS_FONTS/afm//"
 
 # PostScript Type 1 outline fonts: 
   export T1FONTS="$GMS_FONTS/type1//"
 
 # TrueType outline fonts: 
   export TTFONTS="$GMS_FONTS/ttf//"
   
 # 5) Contribute to gmsdebug.log: ---------------------------------------------

   if [ "$GMS_DEBUG" = "Z" -a "$GMS_MODE" != "quiet" ]; then 
     echo " folder ($1) ($2) ($3) ($4) ($5) ($6) ($7) ($8) ($9)" >> "$Z"
   fi
