X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk-publish;h=de128af75136791f30faabdba6a0f173c44cbee2;hb=832eb757ef7f81abf1e431ce16f368c10dd57962;hp=f64ea3c8a00fa568acf693cb27a675e422d4f46f;hpb=a23ac54e7a0a949f5a6fbc1e00e895978055e387;p=bookmarks_db.git diff --git a/bkmk-publish b/bkmk-publish index f64ea3c..de128af 100755 --- a/bkmk-publish +++ b/bkmk-publish @@ -1,27 +1,28 @@ #! /bin/sh +# Publish bookmarks using hotexplode.pl +# +# This file is a part of Bookmarks database and Internet robot. +# +# __version__ = "$Revision$"[11:-2] +# __revision__ = "$Id$"[5:-2] +# __date__ = "$Date$"[7:-2] +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design" +# __license__ = "GNU GPL" umask 077 PATH=$HOME/lib/bookmarks_db:$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/public_html/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