X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-rsync;h=0e73217378c00601fc7fb7045dfa8acf8c12e0a4;hb=a3bdba992715f6282e112e06a2beee15d20b69ca;hp=75164d46819cbc35d96dc0819219e2825584e166;hpb=b1d82441fea069f3aab41866bdec163e0968b29d;p=bookmarks_db.git diff --git a/bkmk-rsync b/bkmk-rsync index 75164d4..0e73217 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 -cd "$HOME/.netscape" -exec distribute "$HOME/.netscape/bookmarks.html" +distribute -r .mozilla bookmarks.html +exec mv bookmarks.html "$HOME/.mozilla/bookmarks.html"