# The latest version of libdvdread that I'm able to build this against is
# 0.9.4 It failed with 0.9.5, .6, and .7 I include a patch for .7 in my
# howto.
cd
test -f installed/dvdbackup-0.1.1.tar.gz &&
mv installed/dvdbackup-0.1.1.tar.gz .
test ! -f dvdbackup-0.1.1.tar.gz &&
wget http://dvd-create.sourceforge.net/dvdbackup-0.1.1.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "dvdbackup-*" -exec rm -r {} \;
tar xzvf ~/dvdbackup-0.1.1.tar.gz
mv dvdbackup dvdbackup-0.1.1
cd dvdbackup-0.1.1
test $UID = 0 && chown -R root:root .
cd src
# I had to open up dvdbackup.c and insert this line before the "dvdread/"
# lines starting on line 33:
# #include <inttypes.h>