]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-rsync
Remotely sync and publish bookmarks in Mozilla format.
[bookmarks_db.git] / bkmk-rsync
index 2de2b30da8981ce0d49d315ab75dbe650362195e..cc7034d5badf2d3893bec4c9acbcf677ea382597 100755 (executable)
@@ -1,8 +1,11 @@
 #! /bin/sh
 
 PATH=$HOME/lib/bookmarks_db:$PATH
+umask 077
 
-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"