#!/bin/bash
# cleanl
#
# This command deletes all files that are produced in the compilation process
# except for the graphics files generated from asymptote, xfig files etc.
# in the figure directory.
# Because it does not remove the latter graphics files this is a "light"
# cleaning.  One can run the light compile (compilel) after this command
# and the document can still be created.  (This is convenient if you wish to
# give the document to someone who does not have asymptote or fig2pdf
# installed or you are not working on images and wish to compile quickly.)
#
# Put the document name here.
DOCUMENT_BASENAME="master"
# Remove all files with the document name
rm -f $DOCUMENT_BASENAME.pdf $DOCUMENT_BASENAME.aux $DOCUMENT_BASENAME.log $DOCUMENT_BASENAME.toc $DOCUMENT_BASENAME.ans $DOCUMENT_BASENAME.fdb_latexmk $DOCUMENT_BASENAME.dvi $DOCUMENT_BASENAME.ps $DOCUMENT_BASENAME.fls $DOCUMENT_BASENAME.pre $DOCUMENT_BASENAME.out $DOCUMENT_BASENAME.ind $DOCUMENT_BASENAME.ilg $DOCUMENT_BASENAME.idx graphics/$DOCUMENT_BASENAME.aux graphics/$DOCUMENT_BASENAME.log
# Individual auxiliary files are generated by input files and need to be removed
rm -f *.aux
