mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cksfv-*" -exec rm -r {} \;
tar xjvf ~/cksfv-1.3.9.tar.bz2
cd cksfv-1.3.9
test $UID = 0 && chown -R root:root .
./configure
make
make check
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/cksfv-*.tar.*
mv cksfv-1.3.9.tar.bz2 installed/
# To check files against foo.sfv file:
# cksfv -f foo.sfv
# To create a .sfv file for the files in /foo/bar:
# cksfv /foo/bar/* > foo.sfv
# If you ever want to uninstall cksfv, this should do it:
su -c "rm -f /usr/local/bin/cksfv /usr/local/man/man1/cksfv.1"
find ~/src -maxdepth 1 -type d -name "cksfv-*" -exec rm -r {} \;
rm -f ~/installed/cksfv-*.tar.*