X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-rsync;h=463039389b6b2da412b3264a7b76b8a078df383e;hb=7915c0f51c9b7556d6af1de9582f68e98f473799;hp=bcd20034cf5f84bccea23e2345300570427b64b6;hpb=bd8542d24581a669bb07d4d03aa5c4404ac4d262;p=bookmarks_db.git diff --git a/bkmk-rsync b/bkmk-rsync index bcd2003..4630393 100755 --- a/bkmk-rsync +++ b/bkmk-rsync @@ -1,10 +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-2014 PhiloSoft Design" +# __license__ = "GNU GPL" -PATH=$HOME/lib/bookmarks_db:$PATH +. "`dirname \"$0\"`"/set-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 -DISTRIBUTE_REMOTE_DIR=".netscape" \ - exec distribute "$HOME/.netscape/bookmarks.html" +distribute -A -r .mozilla bookmarks.html +exec mv bookmarks.html "$HOME/.mozilla/bookmarks.html"