Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78834918
mkdocs.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 23, 06:04
Size
619 B
Mime Type
text/x-shellscript
Expires
Sun, Aug 25, 06:04 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
17990674
Attached To
rLAMMPS lammps
mkdocs.sh
View Options
#!/bin/sh
# update equations
for
s in doc/Eqs/*.tex
do
\
n
=
`
basename
$s
.tex
`
if
[
! -e doc/Eqs/
${
n
}
.jpg
]
||
[
$s
-nt doc/Eqs/
${
n
}
.jpg
]
then
pdflatex
$s
pdftoppm
${
n
}
.pdf | pnmcrop | pnmtojpeg > doc/Eqs/
${
n
}
.jpg
rm -f
${
n
}
.aux
${
n
}
.log
${
n
}
.pdf
fi
done
# build txt2html tool
make -C txt2html
# convert all .txt files to html
./txt2html/txt2html -b doc/*.txt
# check if we have any new html files,
# that are not yet in the book file.
for
s in
`
echo
doc/*.txt | sed -e
's,\.txt,\.html,g'
`
do
\
grep -q
$s
lammps.book
||
echo
doc file
$s
missing in lammps.book
done
htmldoc --batch lammps.book
Event Timeline
Log In to Comment