Commit e1604fe8 authored by Sergey Goncharov's avatar Sergey Goncharov
Browse files

correction

parent c008112e
Pipeline #29624 passed with stage
in 20 seconds
...@@ -37,7 +37,7 @@ DVIPS = dvips ...@@ -37,7 +37,7 @@ DVIPS = dvips
PDFPS = pdftops PDFPS = pdftops
PDF = max_print_line=1000 pdflatex -shell-escape -src -halt-on-error -synctex=1 -interaction nonstopmode -file-line-error-style PDF = max_print_line=1000 pdflatex -shell-escape -src -halt-on-error -synctex=1 -interaction nonstopmode -file-line-error-style
OPEN = xdg-open OPEN = xdg-open
MD5SUM = md5sum --quiet MD5SUM = md5sum
# Mac-specific definitions # Mac-specific definitions
ifeq ($(shell uname), Darwin) ifeq ($(shell uname), Darwin)
...@@ -97,7 +97,7 @@ edit: $(SRCNAMES) ...@@ -97,7 +97,7 @@ edit: $(SRCNAMES)
$(LATEX) $(@:.dvi=.tex) || (touch --date="`date -R -r $(@:.dvi=.tex)`" $@ & false) $(LATEX) $(@:.dvi=.tex) || (touch --date="`date -R -r $(@:.dvi=.tex)`" $@ & false)
@echo If the citations were updated recompile the .bbl file @echo If the citations were updated recompile the .bbl file
grep -o -G "Citation \`[^']*" $(@:.dvi=.log) | $(MD5SUM) -c $(@:.dvi=.cit) || $(BIBTEX) $(@:.dvi=.aux) grep -o -G "Citation \`[^']*" $(@:.dvi=.log) | $(MD5SUM) -c --quiet $(@:.dvi=.cit) || $(BIBTEX) $(@:.dvi=.aux)
while grep -q "Rerun to get cross-references right." $(@:.dvi=.log); \ while grep -q "Rerun to get cross-references right." $(@:.dvi=.log); \
do $(LATEX) $(@:.dvi=.tex); done do $(LATEX) $(@:.dvi=.tex); done
...@@ -122,7 +122,7 @@ edit: $(SRCNAMES) ...@@ -122,7 +122,7 @@ edit: $(SRCNAMES)
test -s $(@:.pdf=.cit) || echo '' | $(MD5SUM) > $(@:.pdf=.cit) test -s $(@:.pdf=.cit) || echo '' | $(MD5SUM) > $(@:.pdf=.cit)
@echo If the citations were updated recompile the .bbl file @echo If the citations were updated recompile the .bbl file
grep -o -G "Citation \`[^']*" $(@:.pdf=.log) | $(MD5SUM) -c $(@:.pdf=.cit) || ($(BIBTEX) $(@:.pdf=.aux); $(PDF) $(@:.pdf=.tex) >/dev/null) grep -o -G "Citation \`[^']*" $(@:.pdf=.log) | $(MD5SUM) -c --quiet $(@:.pdf=.cit) || ($(BIBTEX) $(@:.pdf=.aux); $(PDF) $(@:.pdf=.tex) >/dev/null)
@echo -n "Search for dangling references.. " @echo -n "Search for dangling references.. "
@if grep -q "Rerun to get cross-references right." $(@:.pdf=.log); \ @if grep -q "Rerun to get cross-references right." $(@:.pdf=.log); \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment