X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-chk;h=9f026ed81d960d9fff0d7e4d993b21319ebd9c2f;hb=71712390f4edb041609ff7bc9272d12a5c1a9b1d;hp=3d71d3d7aeff7bd5f1c22074cc7adaee68b53658;hpb=ddd8c6c825e4a0f712504e34fb0254bfbf487f98;p=bookmarks_db.git diff --git a/bkmk-chk b/bkmk-chk index 3d71d3d..9f026ed 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -1,8 +1,20 @@ #! /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 && \ @@ -14,4 +26,5 @@ check_title.py > check_title.txt && \ bkmk-sort && \ # Write results to the bookmarks files +convert_st.py json && \ exec db2bkmk.py