X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=bkmk-chk;h=b3b173de249acafe77a1307cf247ad69054a114f;hb=1ba1c9ff7cb9e0e1504bcca46c44a3c89ae4ec55;hp=3d71d3d7aeff7bd5f1c22074cc7adaee68b53658;hpb=ddd8c6c825e4a0f712504e34fb0254bfbf487f98;p=bookmarks_db.git diff --git a/bkmk-chk b/bkmk-chk index 3d71d3d..b3b173d 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -1,10 +1,23 @@ #! /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 && \ +echo '' && \ check_urls.py -e && \ # Report results @@ -14,4 +27,5 @@ check_title.py > check_title.txt && \ bkmk-sort && \ # Write results to the bookmarks files +convert_st.py json && \ exec db2bkmk.py