Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92819724
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
Sat, Nov 23, 23:10
Size
616 B
Mime Type
text/x-shellscript
Expires
Mon, Nov 25, 23:10 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
21698483
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 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