]> git.phdru.name Git - bookmarks_db.git/blob - bkmk2db
Version 3.3.1.
[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=
8    elif [ -f $HOME/.netscape/bookmarks.html ]; then
9       BKMK=$HOME/.netscape/bookmarks.html
10    else
11       echo Cannot find bookmarks.html, aborted
12       exit 1
13    fi
14
15    bkmk2db.py $BKMK || exit 1
16
17 elif [ -f ./bookmarks_db.pickle -a -f ./bookmarks.html -a ./bookmarks.html -nt ./bookmarks_db.pickle ]; then
18    bkmk2db.py || exit 1
19
20 elif [ -f ./bookmarks_db.flad -a -f ./bookmarks.html -a ./bookmarks.html -nt ./bookmarks_db.flad ]; then
21    bkmk2db.py || exit 1
22
23 fi