#!/bin/bash
pushd ~/bin
if [ -f libv.so ]; then
    rm -f libv.so
fi
popd
cd unix
if [ -f libv.a ]; then
    rm -f libv.a
fi
cd ../../source
    make -f gcc.mak clean
if [ -f *~ ]; then
    rm -f *~
fi
cd vfs
if [ -f *~ ]; then
    rm -f *~
fi
cd drivers
if [ -f *~ ]; then
    rm -f *~
fi
cd ../../../include
if [ -f *~ ]; then
    rm -f *~
fi
cd ../..
if [ -f libv.tar ]; then
    rm -f libv.tar
fi
if [ -f libv.tar.bz2 ]; then
    rm -f libv.tar.bz2
fi
tar --create --file=libv.tar libv
bzip2 libv.tar
