Try to find the rip_dvd script automatically.
[rip_dvd/.git] / rip_dvd.wrap
index fdfee25d0fac2aa0407d57251f9ed82cbc2de49b..e9e8544b938eef68cdeee1dca32868389b63ad5c 100755 (executable)
@@ -16,6 +16,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)