Revision a00cdb31
Von Moritz Bunkus vor fast 13 Jahren hinzugefügt
scripts/build_doc.sh | ||
---|---|---|
11 | 11 |
exit 1 |
12 | 12 |
fi |
13 | 13 |
|
14 |
doc=${PWD}/doc |
|
15 |
|
|
14 | 16 |
html=1 |
15 | 17 |
pdf=1 |
16 | 18 |
|
... | ... | |
52 | 54 |
rm -rf ${input} ${custom} |
53 | 55 |
mkdir ${input} ${input}/copy_to_output ${custom} |
54 | 56 |
|
55 |
cp ../../dokumentation.xml ${input}/
|
|
56 |
cp -R ../../images ${input}/copy_to_output/
|
|
57 |
cp -R ../custom-cfg/* ${custom}/
|
|
57 |
cp ${doc}/dokumentation.xml ${input}/
|
|
58 |
test -d ${doc}images && cp -R ${doc}/images ${input}/copy_to_output/
|
|
59 |
cp -R ${doc}/build/custom-cfg/* ${custom}/
|
|
58 | 60 |
|
59 | 61 |
if [[ $pdf = 1 ]] ; then |
60 | 62 |
./generator.sh dokumentation pdf |
61 |
cp ${output}/pdf/dokumentation.pdf ../../Lx-Office-Dokumentation.pdf
|
|
63 |
cp ${output}/pdf/dokumentation.pdf ${doc}/Lx-Office-Dokumentation.pdf
|
|
62 | 64 |
fi |
63 | 65 |
|
64 | 66 |
if [[ $html = 1 ]]; then |
65 | 67 |
./generator.sh dokumentation html |
66 |
rm -rf ../../html
|
|
67 |
mkdir ../../html
|
|
68 |
cp -R ${output}/html ../../
|
|
68 |
rm -rf ${doc}/html
|
|
69 |
mkdir ${doc}/html
|
|
70 |
cp -R ${output}/html ${doc}/
|
|
69 | 71 |
fi |
Auch abrufbar als: Unified diff
Doc-Build-Script fixen