#!/bin/bash ENC=en echo "Content-Type: text/html" echo "Content-Language: $ENC" echo if [ "$#" -lt 1 ]; then echo "Title must be specified" exit fi cd ../DB PARAMS="$@" TITLE="$(echo "$1" | sed 's/\\//g')" shift FILES="" while [ "$#" -gt 0 ]; do eval FNAME=${1} FILE="$(ls videos/${FNAME%.video.db}.video.db | sed -e 's?.*/??' -e 's?\.video\.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.videos.sh -s -e "$ENC" -t "$TITLE" $FILES