]> git.phdru.name Git - bookmarks_db.git/blob - bkmk-chk
2011.
[bookmarks_db.git] / bkmk-chk
1 #! /bin/sh
2 # Check bookmarks
3 #
4 # Convert bookmarks to DB, check URLS from the DB and convert DB
5 # to different formats and back to bookmarks.
6 #
7 # This file is a part of Bookmarks database and Internet robot.
8 #
9 # __version__ = "$Revision$"[11:-2]
10 # __revision__ = "$Id$"[5:-2]
11 # __date__ = "$Date$"[7:-2]
12 # __author__ = "Oleg Broytman <phd@phdru.name>"
13 # __copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
14 # __license__ = "GNU GPL"
15
16 PATH="$HOME/lib/bookmarks_db:$PATH"
17
18 ln -s "$HOME"/Desktop/bookmarks-*.json bookmarks_db.json && \
19 BKMK_STORAGE=json convert_st.py pickle && \
20 rm bookmarks_db.json && \
21
22 check_urls.py && \
23 check_urls.py -e && \
24
25 # Report results
26 BKMK_WRITER=flad db2bkmk.py && \
27 check_dups.py -s -l bookmarks.err >/dev/null && \
28 check_title.py > check_title.txt && \
29 bkmk-sort && \
30
31 # Write results to the bookmarks files
32 convert_st.py json && \
33 exec db2bkmk.py