]> git.phdru.name Git - bookmarks_db.git/blob - bkmk2db
Updated to m_lib version 1.2. Extended support for Mozilla.
[bookmarks_db.git] / bkmk2db
1 #! /bin/sh
2
3 PATH="$HOME/lib/bookmarks_db:$PATH"
4 . "$HOME/lib/config/mozilla_home"
5
6 if [ ! -f ./bookmarks_db.pickle -a ! -f ./bookmarks_db.flad ]; then
7    if [ -f ./bookmarks.html ]; then
8       BKMK=bookmarks.html
9    elif [ -f "$mozilla_home/bookmarks.html" ]; then
10       BKMK="$mozilla_home/bookmarks.html"
11    elif [ -f "$HOME/.netscape/bookmarks.html" ]; then
12       BKMK="$HOME/.netscape/bookmarks.html"
13    else
14       echo Cannot find bookmarks.html, aborted
15       exit 1
16    fi
17
18    bkmk2db.py "$BKMK" || exit 1
19
20 elif [ -f ./bookmarks_db.pickle -a -f ./bookmarks.html -a ./bookmarks.html -nt ./bookmarks_db.pickle ]; then
21    bkmk2db.py || exit 1
22
23 elif [ -f ./bookmarks_db.flad -a -f ./bookmarks.html -a ./bookmarks.html -nt ./bookmarks_db.flad ]; then
24    bkmk2db.py || exit 1
25
26 fi