Revision eb06dc40
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
scripts/build_doc.sh | ||
---|---|---|
15 | 15 |
|
16 | 16 |
html=1 |
17 | 17 |
pdf=1 |
18 |
images=1 |
|
18 | 19 |
|
19 | 20 |
if [[ ! -z $1 ]] ; then |
20 | 21 |
html=0 |
21 | 22 |
pdf=0 |
23 |
images=0 |
|
22 | 24 |
while [[ ! -z $1 ]] ; do |
23 | 25 |
case $1 in |
24 |
html) html=1 ;; |
|
25 |
pdf) pdf=1 ;; |
|
26 |
html) html=1 ;; |
|
27 |
pdf) pdf=1 ;; |
|
28 |
images) images=1 ;; |
|
26 | 29 |
*) |
27 | 30 |
echo "Unknown parameter $1" |
28 | 31 |
exit 1 |
... | ... | |
69 | 72 |
mkdir ${doc}/html |
70 | 73 |
cp -R ${output}/html ${doc}/ |
71 | 74 |
fi |
75 |
|
|
76 |
if [[ $images = 1 ]]; then |
|
77 |
# copy system images from Dobudish directory |
|
78 |
image_list=$(mktemp) |
|
79 |
perl -nle 'print $1 while m{ (?: \.\./ )+ ( system/ [^\"]+ ) }xg' ${doc}/html/*.html | sort | uniq > $image_list |
|
80 |
if [[ -s $image_list ]]; then |
|
81 |
tar -c -f - -T $image_list | tar -x -f - -C ${doc}/html |
|
82 |
perl -pi -e 's{ (\.\./)+ system }{system}xg' ${doc}/html/*.html |
|
83 |
fi |
|
84 |
|
|
85 |
rm $image_list |
|
86 |
fi |
Auch abrufbar als: Unified diff
Von Dobudish benutzte Icons für HTML-Doku mitkopieren