#!/bin/sh
#  NewLayout - shell script to create a CD Layout from ~/.tkcdlayout/config
#   can be used manually or from tkcdlayout

libdir=$(dirname $0)
. $libdir/config &&
. $libdir/Funcs &&
Warning &&
(
  if [ "$layout_type" = "taf" ]; then              # Title and files
       GetFiles
       Title
       WriteLines
  elif [ "$layout_type" = "btas" ]; then           # Big title and subtitle
       BigTitle
       Subtitle
  fi
  
  if [ "$page" = "back" ]; then
       BackBorders
  fi
  
  DoLayout
)

