#! /bin/sh
+# Synchronize bookmarks with remote workstations
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
+# __date__ = "$Date$"[7:-2]
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+# __license__ = "GNU GPL"
PATH=$HOME/lib/bookmarks_db:$PATH
+umask 077
-cd "$HOME/work"
-mz2ns
-mv bookmarks.html "$HOME/.netscape/bookmarks.html"
+bkmk2db || exit 1
+db2bkmk.py || exit 2
+diff $HOME/.mozilla/bookmarks.html bookmarks.html > diff.out
-exec distribute "$HOME/.netscape" "$HOME/.netscape/bookmarks.html"
+distribute -r .mozilla bookmarks.html
+exec mv bookmarks.html "$HOME/.mozilla/bookmarks.html"