X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=rip_dvd.wrap;h=76fcb3ccd62883d2b6f136cf562beaa69939c350;hb=c27a7dbf380c46805e6770c8163b25a4270a20b1;hp=fdfee25d0fac2aa0407d57251f9ed82cbc2de49b;hpb=6994fa0d704833bb934b25281b9e62b1036affcc;p=rip_dvd%2F.git diff --git a/rip_dvd.wrap b/rip_dvd.wrap index fdfee25..76fcb3c 100755 --- a/rip_dvd.wrap +++ b/rip_dvd.wrap @@ -1,4 +1,9 @@ #!/bin/bash +# The purpose of this script is to encapsulate the calls +# made to the rip_dvd script. This is done to help distribute +# the resulting ripped files to the proper folders. This +# script is called from the mythtv menus for example with a +# smaller set of options. ############################################## # COMMAND LINE PROCESSING @@ -16,6 +21,18 @@ if [ -z "$dvdtype" ]; then usage fi +mydir=$(cd $(dirname $0) && pwd) +if [ -z "$ripcmd" ] +then + if [ -x "$mydir/rip_dvd" ] + then + ripcmd="$mydir/rip_dvd" + else + echo >&2 "Cannot find your rip_dvd command!" + exit 1 + fi +fi + ############################################################################## # Local Machine Settings: # Sources both the "default" conf file tracked by GIT (rip_dvd.conf.dist)