Last active
August 29, 2015 13:57
-
-
Save diegoceccarelli/9662903 to your computer and use it in GitHub Desktop.
Thesis makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LATEX_MAIN=thesis | |
LATEX=pdflatex | |
build: $(LATEX_MAIN).tex clean | |
$(LATEX) $(LATEX_MAIN).tex | |
bibtex $(LATEX_MAIN) | |
$(LATEX) $(LATEX_MAIN).tex | |
$(LATEX) $(LATEX_MAIN).tex | |
./wlog.sh | |
pdf: $(LATEX_MAIN).tex | |
$(LATEX) $(LATEX_MAIN).tex | |
clean: | |
rm -f *toc *ps *log *idx *~ *conflicted* *aux *bbl | |
rm -f *ilg *blg *save *ind *dvi *bak Icon* Temp.tex | |
rm -f *{maf,mtc,mtc0,out} | |
rm -f images/*log | |
update: | |
git svn fetch | |
git svn rebase | |
up: update | |
commit: | |
git commit -a -m "$m" | |
git svn dcommit | |
minor: | |
git commit -a -m "minor" | |
git svn dcommit | |
co: commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
a=$(date +%s); b=$(cat *tex */*tex | wc -c); echo $a" "$b >> wlog.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment