Commit 465f14da authored by Michael Büsch's avatar Michael Büsch

doc: Do not generate PDF and PS docs

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 5a327f17
......@@ -13,12 +13,11 @@ __pycache__/
*.gss
/*.html
/*.pdf
.pybuild/
build/
dist/
MANIFEST
/.pybuild/
/build/
/dist/
/MANIFEST
awlsim_cython
pyprofibus
/awlsim_cython
/pyprofibus
......@@ -24,7 +24,9 @@ find . \( \
rm -rf build dist release-archives .pybuild
rm -f MANIFEST
rm -f *.pdf *.html
rm -f *.html
find ./doc -name '*.html' -delete
rm -f debian/files \
debian/*.debhelper \
......
......@@ -22,9 +22,8 @@ gen()
local docname="$(basename "$md" .md)"
local dir="$(dirname "$md")"
local html="$dir/$docname.html"
local pdf="$dir/$docname.pdf"
echo "Generating $docname ..."
echo "Generating $(realpath --relative-to="$srcdir" "$html") from $(realpath --relative-to="$srcdir" "$md") ..."
echo "<!DOCTYPE html><html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"></head><body>" > "$html" ||\
die "Failed to generate"
......@@ -32,30 +31,10 @@ gen()
die "Failed to generate"
echo "</body></html>" >> "$html" ||\
die "Failed to generate"
wkhtmltopdf "$html" "$pdf" ||\
die "Failed to generate"
}
for i in "$srcdir"/*.md; do
for i in $(find "$srcdir" \( -name submodules -prune \) -o \( -name '*.md' -print \)); do
gen "$i"
done
cd "$srcdir" || die "Failed to cd"
html2ps --encoding "UTF-8" \
--web b \
--dsc \
--frame \
--xref \
--number \
--underline \
--colour \
--hyphenate \
README.html > AWLSIM.ps ||\
die "Failed to generate"
ps2pdf AWLSIM.ps AWLSIM.pdf ||\
die "Failed to generate"
exit 0
Markdown is supported
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