]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-rsync
TODO: Configuration file
[bookmarks_db.git] / bkmk-rsync
index e0830ac69a2fec25a1314b5c1c087f47b7bcf81e..463039389b6b2da412b3264a7b76b8a078df383e 100755 (executable)
@@ -1,11 +1,18 @@
 #! /bin/sh
+# Synchronize bookmarks with remote workstations
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
+# __license__ = "GNU GPL"
 
-PATH=$HOME/lib/bookmarks_db:$PATH
+. "`dirname \"$0\"`"/set-path
 umask 077
 
 bkmk2db || exit 1
 db2bkmk.py || exit 2
-diff $HOME/Desktop/bookmarks.html bookmarks.html > diff.out
+diff $HOME/.mozilla/bookmarks.html bookmarks.html > diff.out
 
-distribute -r Desktop bookmarks.html
-exec mv bookmarks.html "$HOME/Desktop/bookmarks.html"
+distribute -A -r .mozilla bookmarks.html
+exec mv bookmarks.html "$HOME/.mozilla/bookmarks.html"