mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
0f6d4310ad
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this by grafting.
25 lines
467 B
Awk
25 lines
467 B
Awk
#!@AWK@ -f
|
|
#
|
|
# This converts w3m bookmarks.html to ELinks bookmarks.lst used by the Lua
|
|
# based bookmarks handling (NOT the internal one!).
|
|
#
|
|
# Feed it by w3m bookmarks.html on stdin.
|
|
#
|
|
# Done by Stephane Chazelas <stephane.chazelas@free.fr>
|
|
#
|
|
|
|
BEGIN {
|
|
FS="[<>\"]"
|
|
c="return {"
|
|
}
|
|
$2 == "h2" {
|
|
print c "\n {\n category = \""$3"\";"
|
|
c=" },"
|
|
}
|
|
$2 == "li" {
|
|
print " { name = \""$7"\", url = \""$5 "\" },"
|
|
}
|
|
END {
|
|
print " },\n}"
|
|
}
|