X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-chk;h=9f026ed81d960d9fff0d7e4d993b21319ebd9c2f;hb=71712390f4edb041609ff7bc9272d12a5c1a9b1d;hp=1cdf1afd53714f827a1af4ee81cdb2459f87978f;hpb=4bc1dbf072d0aa14f1ddca5303476290897776ef;p=bookmarks_db.git diff --git a/bkmk-chk b/bkmk-chk index 1cdf1af..9f026ed 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -1,16 +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 && \ +ln -s "$HOME"/Desktop/bookmarks-*.json bookmarks_db.json && \ +BKMK_STORAGE=json convert_st.py pickle && \ +rm bookmarks_db.json && \ check_urls.py && \ check_urls.py -e && \ # Report results BKMK_WRITER=flad db2bkmk.py && \ -check_dups.py -s -l bookmarks.err && \ +check_dups.py -s -l bookmarks.err >/dev/null && \ check_title.py > check_title.txt && \ +bkmk-sort && \ # Write results to the bookmarks files +convert_st.py json && \ exec db2bkmk.py