I use Latex to write my documents. Latex creates MANY auxiliary files to compile a document. I often times want to clean my working directory.
While I worked on Windows, I used to keep a .bat file in the working directory that looked like this:
del *.aux
del *.pdf
del *.log
del *.bak
del *.gz
del *.bbl
del *.blg
which I could just click on to get rid of all auxiliary files in the current directory.
Now, I want to do the same on my Mac. I have created a .sh file like this:
#!/bin/bash
echo "Cleaning files..."
rm *.aux
rm *.bak
rm *.bbl
rm *.blg
rm *.gz
rm *.log
rm *.pdf
echo "Done!"
which I know I can run (i.e. invoke from command line), but I cannot click on - which is more convenient because not always I will be using Terminal.
I should stress the fact that the script should delete the files in the directory where it was clicked from!
How can I convert this script into a "clickable" one?
I appreciate any input!