1
|
#!/bin/bash -e
|
2
|
# cleans up and formats Gimp's image map for publishing
|
3
|
. "$(dirname "${BASH_SOURCE[0]}")"/../../../lib/runscripts/util.run
|
4
|
.rel ../../../lib/sh/local.sh
|
5
|
|
6
|
if self_not_included; then
|
7
|
|
8
|
cleanup()
|
9
|
{
|
10
|
echo_func; set_make_vars
|
11
|
in_place "$top_file" $sed_cmd 's/&/\&/g' # undo double-encodings
|
12
|
}
|
13
|
|
14
|
index.htm/make()
|
15
|
{
|
16
|
echo_func; set_make_vars
|
17
|
stdout="$target" to_file sed \
|
18
|
-e 's/( alt="[^:"]*): ([^"]*)(")/\1\3 title="\2"/g' \
|
19
|
"$top_file"
|
20
|
}
|
21
|
|
22
|
all()
|
23
|
{
|
24
|
echo_func
|
25
|
cleanup
|
26
|
index.htm/make
|
27
|
}
|
28
|
|
29
|
fi
|