mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
93f4f00719
Hash values are now computed for each "paragraph" starting with \LMHash (which includes subsequent grammar, dartCode, itemize blocks, but stops at \section-like commands). Now addlatexhash.dart expects three arguments (first the source latex file, then the destination simplified and hash-value-annotated latex source file, and finally a file name used to create the list of hash values emitted). Adjusted testing accordingly. Added a test for robustness of the hash value generation: It is checked that lots of different "unimportant" changes make no difference for the generated hash values (e.g., we can add/remove comments, change white space, add \commentary{..} etc. without changing the hash values). In order to ensure that all "structure" commands in the spec have a label, I added an \LMLabel{..} a handful of places, following the style which is used throughout the spec. In dart.sty, the \renewcommand that made \LMHash{} produce a fixed hash value has been removed such that the actual hash values are now inserted into the generated spec PDF/DVI file. Tests have been adjusted to handle this difference between the spec with and without hash values when comparing the two. R=gbracha@google.com, lrn@google.com, ricow@google.com Committed: https://code.google.com/p/dart/source/detail?r=41658 Reverted: https://code.google.com/p/dart/source/detail?r=41662 Review URL: https://codereview.chromium.org//652993005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41687 260f80e4-7a28-3924-810f-c04153c831b5
42 lines
796 B
Makefile
42 lines
796 B
Makefile
NAME=dartLangSpec
|
|
SPEC=$(NAME).tex
|
|
HASH=$(NAME)-hash.tex
|
|
LIST=$(NAME)-list.txt
|
|
HASHER=../../tools/addlatexhash.dart
|
|
|
|
pdf:
|
|
pdflatex $(SPEC)
|
|
pdflatex $(SPEC)
|
|
pdflatex $(SPEC)
|
|
|
|
pdfhash: hash_and_list
|
|
pdflatex $(HASH)
|
|
pdflatex $(HASH)
|
|
pdflatex $(HASH)
|
|
|
|
dvi:
|
|
latex $(SPEC)
|
|
latex $(SPEC)
|
|
latex $(SPEC)
|
|
|
|
dvihash: hash_and_list
|
|
latex $(HASH)
|
|
latex $(HASH)
|
|
latex $(HASH)
|
|
|
|
hash_and_list:
|
|
dart $(HASHER) $(SPEC) $(HASH) $(LIST)
|
|
|
|
help:
|
|
@echo "Goals:"
|
|
@echo " pdf, dvi: generate the pdf/dvi file containing the spec"
|
|
@echo " pdfhash, dvihash: ditto, with location markers filled in"
|
|
@echo " cleanish: remove [pdf]latex generated intermediate files"
|
|
@echo " clean: remove all generated files"
|
|
|
|
cleanish:
|
|
rm -f *.aux *.log *.toc *.out
|
|
|
|
clean: cleanish
|
|
rm -f *.dvi *.pdf $(HASH) $(LIST)
|
|
|