X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-chk;h=941e66f98c7f1a63f837572696225255c000186b;hb=acc701373334d53eda5af6f9c2b34dac243a06a2;hp=3d71d3d7aeff7bd5f1c22074cc7adaee68b53658;hpb=ddd8c6c825e4a0f712504e34fb0254bfbf487f98;p=bookmarks_db.git diff --git a/bkmk-chk b/bkmk-chk index 3d71d3d..941e66f 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -1,8 +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. +# +# __version__ = "$Revision$"[11:-2] +# __revision__ = "$Id$"[5:-2] +# __date__ = "$Date$"[7:-2] +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2000-2011 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 +29,5 @@ check_title.py > check_title.txt && \ bkmk-sort && \ # Write results to the bookmarks files +convert_st.py json && \ exec db2bkmk.py