cd
test -f installed/dvdauthor-0.6.14.tar.gz &&
mv installed/dvdauthor-0.6.14.tar.gz .
test ! -f dvdauthor-0.6.14.tar.gz &&
wget http://download.sf.net/dvdauthor/dvdauthor-0.6.14.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "dvdauthor-*" -exec rm -r {} \;
tar xzvf ~/dvdauthor-0.6.14.tar.gz
cd dvdauthor-0.6.14
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/dvdauthor-*.tar.*
mv dvdauthor-0.6.14.tar.gz installed/
# If you ever want to uninstall dvdauthor, this should do it:
cd
su
test -d src/dvdauthor-* && ( cd src/dvdauthor-* ; make uninstall )
( cd /usr/local/bin ; rm -f dvdauthor dvddirdel dvdunauthor mpeg2desc \
spumux spuunmux )
( cd /usr/local/man/man1 ; rm -f dvdauthor.1 spumux.1 )
test -d /usr/local/share/dvdauthor && rm -r /usr/local/share/dvdauthor
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "dvdauthor-*" -exec rm -r {} \;
rm -f ~/installed/dvdauthor-*.tar.*