Slight tweak to sed in doc/Makefile

This commit is contained in:
efetis 2019-02-06 17:32:47 -08:00
parent 4fe6528ed4
commit 7c1fb847f4
1 changed files with 7 additions and 2 deletions

View File

@ -126,8 +126,13 @@ pdf: $(OBJECTS) $(ANCHORCHECK)
deactivate ;\
)
@cd latex && \
sed -i '' 's/\\begin{equation}//g' LAMMPS.tex && \
sed -i '' 's/\\end{equation}//g' LAMMPS.tex && \
sed 's/latexmk -pdf -dvi- -ps-/pdflatex/g' Makefile > temp && \
mv temp Makefile && \
sed 's/\\begin{equation}//g' LAMMPS.tex > tmp.tex && \
mv tmp.tex LAMMPS.tex && \
sed 's/\\end{equation}//g' LAMMPS.tex > tmp.tex && \
mv tmp.tex LAMMPS.tex && \
make && \
make && \
mv LAMMPS.pdf ../Manual.pdf && \
cd ../;