# Some files in this howto used to be put into a viewcvs directory, clean
# that up before you begin if you've run through older revisions of this
# page
cd
test installed/viewcvs &&
( mv -f installed/viewcvs/viewcvs-* installed/
rm -r installed/viewcvs )
test src/viewcvs &&
( mv -f src/viewcvs/viewcvs-* src/
rm -r src/viewcvs )
su -c "find /usr/local -maxdepth 1 -type d -name "viewcvs-*" \
-exec rm -r {} \;"
cd
test -f installed/viewcvs-0.9.4.tar.gz &&
mv installed/viewcvs-0.9.4.tar.gz .
test ! -f viewcvs-0.9.4.tar.gz &&
wget http://viewcvs.sourceforge.net/viewcvs-0.9.4.tar.gz
cd src/viewcvs
find -maxdepth 1 -type d -name "viewcvs-*" -exec rm -r {} \;
tar xzvf ~/viewcvs-0.9.4.tar.gz
cd viewcvs-0.9.4
test $UID = 0 && chown -R root:root .
# Now, fix up /usr/local/viewcvs/viewcvs.conf
# (I have a sample here)
# Create a MySQL user (the one you set in viewcvs.conf)
# Run /usr/local/viewcvs/make-database
# Try http://localhost/cgi-bin/viewcvs.cgi
# Become yourself again
exit
cd
rm -f installed/viewcvs/viewcvs-*.tar.*
mv viewcvs-0.9.4.tar.gz installed/viewcvs/