#!/bin/bash
#
# komprimierung
#
# Komprimierte Werte berechnen
#
###############################################################################
#
if [ -f /etc/ulsserver.conf ]
 then
  . /etc/ulsserver.conf
fi
#
cd `dirname $0`
#
PATH=/usr/bin:/usr/local/bin:$PATH
export PATH
#
if [[ -z "$WEEKSTART" ]]
 then
  if [[ -z "$LANG" ]]
   then
    if [[ -f /etc/profile.d/lang.sh ]]
     then
      . /etc/profile.d/lang.sh 2>/dev/null 2>&1
    else
      . /etc/profile >/dev/null 2>&1
    fi
  fi
  # Wochenstart bestimmen: 1 = Sonntag, 2 = Montag, ...
  if [[ -n "$WEEKSTART" ]]
   then
    WEEKSTART=`locale first_weekday`
  fi
fi
#
u2w_interpreter -Xi ../u2w.conf -me komprimierung.s2w weekstart=${WEEKSTART:-2}
#
u2w_interpreter -Xi ../u2w.conf -me compression_special.s2w
#
../ulsmeld/do_kompulsmeld
