]> git.phdru.name Git - bookmarks_db.git/blob - bkmk-rsync
2011.
[bookmarks_db.git] / bkmk-rsync
1 #! /bin/sh
2 # Synchronize bookmarks with remote workstations
3 #
4 # This file is a part of Bookmarks database and Internet robot.
5 #
6 # __version__ = "$Revision$"[11:-2]
7 # __revision__ = "$Id$"[5:-2]
8 # __date__ = "$Date$"[7:-2]
9 # __author__ = "Oleg Broytman <phd@phdru.name>"
10 # __copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
11 # __license__ = "GNU GPL"
12
13 PATH=$HOME/lib/bookmarks_db:$PATH
14 umask 077
15
16 bkmk2db || exit 1
17 db2bkmk.py || exit 2
18 diff $HOME/.mozilla/bookmarks.html bookmarks.html > diff.out
19
20 distribute -r .mozilla bookmarks.html
21 exec mv bookmarks.html "$HOME/.mozilla/bookmarks.html"