X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=bkmk-chk;h=3e5e5fe98789aecfcd8b7f59f06c8a5ce018dd23;hp=a2b970855d6c45e97ed49d2749f17e716d07934c;hb=53d4a2383cfef1310871eefcc14e6e1950b96853;hpb=194aa48e0b7f3b0a43f4689ff3bcd2f3512689b5 diff --git a/bkmk-chk b/bkmk-chk index a2b9708..3e5e5fe 100755 --- a/bkmk-chk +++ b/bkmk-chk @@ -1,20 +1,31 @@ #! /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-2014 PhiloSoft Design" +# __license__ = "GNU GPL" -PATH="$HOME/lib/bookmarks_db:$PATH" +. "`dirname \"$0\"`"/set-path -ln -s "$HOME/Desktop/bookmarks-*.json" bookmarks_db.json && \ -BKMK_STORAGE=json convert_st.py pickle && \ -rm bookmarks_db.json && \ +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 && \ +check_urls.py && +echo '' && +check_urls.py -e && # Report results -BKMK_WRITER=flad db2bkmk.py && \ -check_dups.py -s -l bookmarks.err >/dev/null && \ -check_title.py > check_title.txt && \ -bkmk-sort && \ +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 the bookmarks files -convert_st.py json && \ +convert_st.py json && exec db2bkmk.py