| 1 |
example.pdf: |
| 2 |
@echo "-> building example.pdf..." |
| 3 |
@cd example && ./build.sh > /dev/null |
| 4 |
@mv example/example.pdf ./ |
| 5 |
|
| 6 |
clean: |
| 7 |
@echo "-> cleaning..." |
| 8 |
@git clean -xdf > /dev/null |
| 9 |
@rm example.pdf |
| 10 |
|
| 11 |
test: clean example.pdf |
| 12 |
@# Feel free to make this smarter. |
| 13 |
@echo "-> Opening example.pdf in evince. Does it look okay?" |
| 14 |
@`evince example.pdf &2> /dev/null` |
| 15 |
|
| 16 |
publish: example.pdf clean |
| 17 |
@echo "-> creating tarball..." |
| 18 |
@tar -czf /tmp/uafthesis.tgz --exclude=.git ../uafthesis > /dev/null |
| 19 |
curl --form "contribution=uafthesis" \ |
| 20 |
--form "name=Joshua Holbrook" \ |
| 21 |
--form "[email protected]" \ |
| 22 |
--form "summary=Document class for theses at University of Alaska Fairbanks." \ |
| 23 |
--form "version=12.12" \ |
| 24 |
--form "directory=/macros/latex/contrib/uafthesis" \ |
| 25 |
--form "license=free" \ |
| 26 |
--form "freeversion=lppl" \ |
| 27 |
--form "file=@/tmp/uafthesis.tgz" \ |
| 28 |
http://www.tex.ac.uk/cgi-bin/ctan-upload.cgi |