Revision f8309cb7
Von Moritz Bunkus vor fast 13 Jahren hinzugefügt
scripts/build_doc.sh | ||
---|---|---|
11 | 11 |
exit 1 |
12 | 12 |
fi |
13 | 13 |
|
14 |
html=1 |
|
15 |
pdf=1 |
|
16 |
|
|
17 |
if [[ ! -z $1 ]] ; then |
|
18 |
html=0 |
|
19 |
pdf=0 |
|
20 |
while [[ ! -z $1 ]] ; do |
|
21 |
case $1 in |
|
22 |
html) html=1 ;; |
|
23 |
pdf) pdf=1 ;; |
|
24 |
*) |
|
25 |
echo "Unknown parameter $1" |
|
26 |
exit 1 |
|
27 |
;; |
|
28 |
esac |
|
29 |
|
|
30 |
shift |
|
31 |
done |
|
32 |
fi |
|
33 |
|
|
14 | 34 |
dobudish=$(ls -d doc/build/dobudish* 2> /dev/null) |
15 | 35 |
|
16 | 36 |
if [[ -z $dobudish ]] || [[ ! -d ${dobudish} ]]; then |
... | ... | |
29 | 49 |
output=${base}/output |
30 | 50 |
custom=${base}/custom-cfg |
31 | 51 |
|
32 |
rm -f ${input}/*.xml
|
|
33 |
cp ../../dokumentation.xml ${input}/
|
|
52 |
rm -rf ${input} ${custom}
|
|
53 |
mkdir ${input} ${input}/copy_to_output ${custom}
|
|
34 | 54 |
|
35 |
rm -f ${custom}/* |
|
55 |
cp ../../dokumentation.xml ${input}/ |
|
56 |
cp -R ../../images ${input}/copy_to_output/ |
|
36 | 57 |
cp -R ../custom-cfg/* ${custom}/ |
37 | 58 |
|
38 |
./generator.sh dokumentation pdf |
|
39 |
cp ${output}/pdf/dokumentation.pdf ../../ |
|
59 |
if [[ $pdf = 1 ]] ; then |
|
60 |
./generator.sh dokumentation pdf |
|
61 |
cp ${output}/pdf/dokumentation.pdf ../../ |
|
62 |
fi |
|
40 | 63 |
|
41 |
./generator.sh dokumentation html |
|
42 |
rm -rf ../../html |
|
43 |
mkdir ../../html |
|
44 |
cp -R ${output}/html ../../html |
|
64 |
if [[ $html = 1 ]]; then |
|
65 |
./generator.sh dokumentation html |
|
66 |
rm -rf ../../html |
|
67 |
mkdir ../../html |
|
68 |
cp -R ${output}/html ../../ |
|
69 |
fi |
Auch abrufbar als: Unified diff
Erzeugte PDF- und HTML-Varianten der Dokumentation