echoall
if ! -r $1/library exit
mv $1 shit
mv shit/library $1.lib
cd shit
rm -f -r *
rmdir *
cd ..
rmdir shit
