X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-chk;h=9f026ed81d960d9fff0d7e4d993b21319ebd9c2f;hb=f6c34e14a430301c1a4e8f3d9f3db9ec9cf55ec3;hp=5354ac9b9bd0b76c5071775d247a0889987d7303;hpb=a80d28f2fa45c6b07a5004e4db9285bed62baae7;p=bookmarks_db.git diff --git a/bkmk-chk b/bkmk-chk index 5354ac9..9f026ed 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -1,15 +1,30 @@ #! /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-2012 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 -BKMK_MZFORMAT=TRUE db2bkmk.py || exit 1 +# Write results to the bookmarks files +convert_st.py json && \ +exec db2bkmk.py