#! /bin/sh # Convert bookmarks to DB # # This file is a part of Bookmarks database and Internet robot. # # __author__ = "Oleg Broytman " # __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" # __license__ = "GNU GPL" . "`dirname \"$0\"`"/set-path if [ ! -f ./bookmarks_db.pickle -a ! -f ./bookmarks_db.flad ]; then if [ -f ./bookmarks.html ]; then BKMK=bookmarks.html elif [ -f "$HOME/.mozilla/bookmarks.html" ]; then BKMK="$HOME/.mozilla/bookmarks.html" 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