X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-chk;h=941e66f98c7f1a63f837572696225255c000186b;hb=37e5ca9a47342470bd5f7e92238236e1d4be0a45;hp=82f3fbe9b222883bc62306efbe60cb850b8cf3b5;hpb=fb5c3b2b91aeeb615d6d6d890491af3fdff69556;p=bookmarks_db.git diff --git a/bkmk-chk b/bkmk-chk index 82f3fbe..941e66f 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -1,16 +1,33 @@ #! /bin/sh +# Check bookmarks +# +# Convert bookmarks to DB, check URLS from the DB and convert DB +# to different formats and back to bookmarks. +# +# This file is a part of Bookmarks database and Internet robot. +# +# __version__ = "$Revision$"[11:-2] +# __revision__ = "$Id$"[5:-2] +# __date__ = "$Date$"[7:-2] +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design" +# __license__ = "GNU GPL" -PATH=$HOME/lib/bookmarks_db:$PATH +PATH="$HOME/lib/bookmarks_db:$PATH" -bkmk2db || exit 1 +ln -s "$HOME"/Desktop/bookmarks-*.json bookmarks_db.json && \ +BKMK_STORAGE=json convert_st.py pickle && \ +rm bookmarks_db.json && \ -check_urls.py || exit 1 -check_urls.py -e || exit 1 +check_urls.py && \ +check_urls.py -e && \ # Report results -BKMK_WRITER=flad db2bkmk.py || exit 1 -check_dups.py -s -l bookmarks.err || exit 1 +BKMK_WRITER=flad db2bkmk.py && \ +check_dups.py -s -l bookmarks.err >/dev/null && \ +check_title.py > check_title.txt && \ +bkmk-sort && \ -# Write results to output bookmarks files -db2bkmk.py || exit 1 -diff $HOME/.netscape/bookmarks.html bookmarks.html > diff.out +# Write results to the bookmarks files +convert_st.py json && \ +exec db2bkmk.py