X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-rsync;h=5244ebb5b49ca7646c60bcc58965d4b377b3de39;hb=80054d3bdcbde67d3b941e0b69b55ca4998f4673;hp=08835d734138b10f87f9ddff1778cba44311d78e;hpb=1e7a6a5a39850085c355c475b5a93b183d08a05d;p=bookmarks_db.git diff --git a/bkmk-rsync b/bkmk-rsync index 08835d7..5244ebb 100755 --- a/bkmk-rsync +++ b/bkmk-rsync @@ -1,9 +1,18 @@ #! /bin/sh +# Synchronize bookmarks with remote workstations +# +# This file is a part of Bookmarks database and Internet robot. +# +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2000-2012 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 -r .netscape "$HOME/.netscape/bookmarks.html" +distribute -r .mozilla bookmarks.html +exec mv bookmarks.html "$HOME/.mozilla/bookmarks.html"