X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=bkmk-chk;h=3e5e5fe98789aecfcd8b7f59f06c8a5ce018dd23;hp=4faadd2eb0b9808319ba26227ab734e6927aa3fd;hb=2d964b5fedeaeecd68a4f4de698348a5595906f0;hpb=387f77d110986aa12967c9cd788ab0e4f41f2be2 diff --git a/bkmk-chk b/bkmk-chk index 4faadd2..3e5e5fe 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -1,16 +1,31 @@ #! /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. +# +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" +# __license__ = "GNU GPL" -PATH=$HOME/lib/bookmarks_db:$PATH +. "`dirname \"$0\"`"/set-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 && +echo '' && +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