Project

General

Profile

1 8726 aaronmk
#!/bin/bash -e
2
# reformats index.htm for display
3 8893 aaronmk
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/util.run
4 9854 aaronmk
.rel ../../lib/sh/local.sh
5 8726 aaronmk
6
if self_not_included; then
7
8 9074 aaronmk
clean_up()
9 8726 aaronmk
{
10 8881 aaronmk
	echo_func
11 9238 aaronmk
	command in_place "$top_file" repl \
12 8726 aaronmk
	"$root_dir"/lib/Firefox_bookmarks.reformat.csv
13 9367 aaronmk
	command in_place "$top_file" $sed_cmd \
14
'/^    <DT><a name="Quick links".*PERSONAL_TOOLBAR_FOLDER/,/^    <\/DL>/{
15 9369 aaronmk
s/( name="| href="#)([^_])/\1__\2/g
16 9367 aaronmk
}'
17 8726 aaronmk
}
18
19 9074 aaronmk
all()
20 8726 aaronmk
{
21 8881 aaronmk
	echo_func
22 8726 aaronmk
	clean_up
23
}
24
25
fi