#! /bin/sh PATH=$HOME/lib/bookmarks_db:$PATH if [ ! -f ./bookmarks_db.pickle -a ! -f ./bookmarks_db.flad ]; then if [ -f ./bookmarks.html ]; then BKMK= elif [ -f $HOME/.netscape/bookmarks.html ]; then BKMK=$HOME/.netscape/bookmarks.html else echo Cannot find bookmarks.html, aborted exit 1 fi bkmk2db.py $BKMK || exit 1 elif [ -f ./bookmarks_db.pickle -a -f ./bookmarks.html -a ./bookmarks.html -nt ./bookmarks_db.pickle ]; then bkmk2db.py || exit 1 elif [ -f ./bookmarks_db.flad -a -f ./bookmarks.html -a ./bookmarks.html -nt ./bookmarks_db.flad ]; then bkmk2db.py || exit 1 fi