]> git.phdru.name Git - bookmarks_db.git/blob - bkmk2db
Do not use bookmarks.html from Firefox3 directory - use ~/.mozilla/ instead.
[bookmarks_db.git] / bkmk2db
1 #! /bin/sh
2
3 PATH="$HOME/lib/bookmarks_db:$PATH"
4
5 if [ ! -f ./bookmarks_db.pickle -a ! -f ./bookmarks_db.flad ]; then
6    if [ -f ./bookmarks.html ]; then
7       BKMK=bookmarks.html
8    elif [ -f "$HOME/.mozilla/bookmarks.html" ]; then
9       BKMK="$HOME/.mozilla/bookmarks.html"
10    elif [ -f "$HOME/.netscape/bookmarks.html" ]; then
11       BKMK="$HOME/.netscape/bookmarks.html"
12    else
13       echo Cannot find bookmarks.html, aborted
14       exit 1
15    fi
16
17    bkmk2db.py "$BKMK" || exit 1
18
19 elif [ -f ./bookmarks_db.pickle -a -f ./bookmarks.html -a ./bookmarks.html -nt ./bookmarks_db.pickle ]; then
20    bkmk2db.py || exit 1
21
22 elif [ -f ./bookmarks_db.flad -a -f ./bookmarks.html -a ./bookmarks.html -nt ./bookmarks_db.flad ]; then
23    bkmk2db.py || exit 1
24
25 fi