]> git.phdru.name Git - bookmarks_db.git/commitdiff
Convert Mozilla bookmarks to Netscape format.
authorOleg Broytman <phd@phdru.name>
Mon, 28 Jul 2003 12:30:47 +0000 (12:30 +0000)
committerOleg Broytman <phd@phdru.name>
Mon, 28 Jul 2003 12:30:47 +0000 (12:30 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@12 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

mz2ns [new file with mode: 0755]

diff --git a/mz2ns b/mz2ns
new file mode 100755 (executable)
index 0000000..ea6719c
--- /dev/null
+++ b/mz2ns
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+PATH=$HOME/lib/bookmarks_db:$PATH
+
+bkmk2db || exit 1
+db2bkmk.py || exit 2
+
+sed -e 's/&lt;/</g' -e 's/&gt;/>/g' -e 's/&quot;/"/g' -e 's/&amp;/\&/g' \
+   bookmarks.html >_tmp.$$ && \
+mv _tmp.$$ bookmarks.html
+exec diff $HOME/.netscape/bookmarks.html bookmarks.html > diff.out