]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-rsync
Minor optimization (free an object). Changed error message.
[bookmarks_db.git] / bkmk-rsync
index b8193827bf549091666477cb8d1c17514ff7ca62..cc7034d5badf2d3893bec4c9acbcf677ea382597 100755 (executable)
@@ -1,9 +1,11 @@
 #! /bin/sh
 
-remote_server=sun
+PATH=$HOME/lib/bookmarks_db:$PATH
+umask 077
 
-rsync -avz "$HOME/.netscape/bookmarks.html" "$remote_server:.netscape" # && \
+bkmk2db || exit 1
+db2bkmk.py || exit 2
+diff $HOME/.mozilla/bookmarks.html bookmarks.html > diff.out
 
-#rsync -avz "$HOME/Internet/WWW/phd.pp.ru/Bookmarks/bkmk-koi.html" \
-#           "$HOME/Internet/WWW/phd.pp.ru/Bookmarks/bkmk-win.html" \
-#   "$remote_server:Internet/WWW/phd.pp.ru/Bookmarks"
+distribute -r .mozilla bookmarks.html
+exec mv bookmarks.html "$HOME/.mozilla/bookmarks.html"