# tovid - a wrapper for the tovid scripts #!/bin/bash PATH=/usr/lib/tovid/:$PATH # this line configured by autotools SEPARATOR="=========================================================" usage_error() { echo "$SEPARATOR" echo "$@" echo "Please provide the name of the script to run" echo "See idvid(1), makedvd(1), makemenu(1), makevcd(1), makexml(1), " echo -n "postproc(1), makevid(1), todisc(1)" echo exit 1 } if test -z "$1"; then usage_error fi while test $# -gt 0; do DO_SHIFT=: case "$1" in "makevid" | "todisc" | "makemenu" | "makexml" | "makedvd" ) exec "$@" ;; * ) test -n "$1" && usage_error "Unrecognized command-line option: '$1'" esac done