#!/bin/bash ENC=cz echo "Content-Type: text/html; charset=iso-8859-2" echo "Content-Language: $ENC" echo if [ "$#" -lt 1 ]; then echo "Musí být specifikován titulek" exit fi cd ../DB PARAMS="$@" TITLE="$(echo "$1" | sed 's/\\//g')" shift FILES="" while [ "$#" -gt 0 ]; do eval FNAME=${1} FILE="$(ls singles/${FNAME%.single.db}.single.db | sed -e 's?.*/??' -e 's?\.single\.db??')" FILES="$FILES $FILE" shift done VERB=n if [ "$VERB" = "y" ]; then echo "
"
  echo "PARAMS=$PARAMS"
  echo "TITLE=$TITLE"
  echo "FILES=$FILES"
  echo "
" fi exec ./mk.singles.sh -s -e "$ENC" -t "$TITLE" $FILES