#
# Copyright (C) by Stefano Falsetto
# e-mail contact ....: mailto:stefko5@inwind.it
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#
# Config plugin (phase 4) for cdl-0.03

configure_cdl () {
  begin_check "cdl"
  find_prg cdl.pl
  CDL=$FOUND_PRG
  if [ ! -z "$CDL" ]; then
    DESCRIPTION="Create a CD cover from an item list using cdl.pl"
    WHERE=END
    PARAMETERS="--cdl|--save-itemsfile|--out-file"
    DEF_CDL="$CDL"
    CDL_DIR=$(dirname $DEF_CDL)
    DEF_CDL_FILENAME="cdl-cover.ps"
  else
    missing cdl.pl "http://sis.fbm.vutbr.cz/~honza/cdl"
  fi
}

cat_variables_cdl () {
cat <<EOF
# Complete path for cdl
DEF_CDL="$DEF_CDL"

# Dir containing necessary files to cdl
CDL_DIR="$CDL_DIR"

# Default output filename
DEF_CDL_FILENAME="$DEF_CDL_FILENAME"

EOF
}

