X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-publish;h=2f0b0d3a868fd052fe15620b1506bfa847379044;hb=2d964b5fedeaeecd68a4f4de698348a5595906f0;hp=4086628b358857e39392a3277e8e1ef0edd52dae;hpb=103bee98b792d9a0356dc4738541918d398edef8;p=bookmarks_db.git diff --git a/bkmk-publish b/bkmk-publish index 4086628..2f0b0d3 100755 --- a/bkmk-publish +++ b/bkmk-publish @@ -1,16 +1,25 @@ #! /bin/sh +# Publish bookmarks using hotexplode.pl +# +# This file is a part of Bookmarks database and Internet robot. +# +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" +# __license__ = "GNU GPL" umask 077 -PATH=$HOME/lib/bookmarks_db:$PATH +. "`dirname \"$0\"`"/set-path STARTDIR="`pwd`" -db2bkmk.py -p "Private links" -o bookmarks.html || exit 1 +BKMK_FORMAT=NETSCAPE db2bkmk.py -p "Private links" -o bookmarks.html || exit 1 echo "Splitting bookmarks..." -cd $HOME/Internet/WWW/htdocs/phd.pp.ru/Bookmarks && \ +cd $HOME/Internet/WWW/htdocs/phdru.name/Bookmarks && rm -rf split || exit 1 -mv $STARTDIR/bookmarks.html . && \ -hotexplode.pl -o split bookmarks.html && \ -chmod -R a+rX . && \ +mv $STARTDIR/bookmarks.html . && +hotexplode.pl -o split bookmarks.html && +chmod -R a+rX . && + +cd "$STARTDIR" && exec rm -f bookmarks_db.pickle