X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=bkmk-publish;h=2f0b0d3a868fd052fe15620b1506bfa847379044;hp=f64ea3c8a00fa568acf693cb27a675e422d4f46f;hb=HEAD;hpb=a23ac54e7a0a949f5a6fbc1e00e895978055e387 diff --git a/bkmk-publish b/bkmk-publish index f64ea3c..2f0b0d3 100755 --- a/bkmk-publish +++ b/bkmk-publish @@ -1,27 +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`" -bkmk-koi -c && \ -mv public-koi.tmp bkmk-koi.html && chmod a+r bkmk-koi.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 -$HOME/lib/bookmarks_db/hotexplode.pl -o split $STARTDIR/bookmarks.html && \ -cp -p ../../../misc/nopasswd-index.html split/privatelinks/index.html || exit 1 +mv $STARTDIR/bookmarks.html . && +hotexplode.pl -o split bookmarks.html && +chmod -R a+rX . && -cp -p $STARTDIR/bkmk-koi.html bookmarks.html && chmod -R a+rX . || exit 1 - -#/usr/local/htdig/bkmk.sh - -cd $STARTDIR && \ -exec rm -f header bookmarks.err bookmarks_db.pickle bookmarks_db.flad \ - private-win.tmp public-win.tmp bookmarks.html bookmark.ht0 bookmark.ht1 bkmk-koi.html - -#zip -9 bkmk bkmk-koi.html bkmk-win.html && \ -#rm -f bkmk-win.html && \ -#cp -p bookmark.ht1 bkmk-win.html || exit 1 +cd "$STARTDIR" && +exec rm -f bookmarks_db.pickle