umask 077
PATH=$HOME/lib/bookmarks_db:$PATH
-cd $HOME/work && \
+STARTDIR="`pwd`"
bkmk-koi -c && \
mv public-koi.tmp bkmk-koi.html && chmod a+r bkmk-koi.html || exit 1
cd $HOME/Internet/WWW/htdocs/phd.pp.ru/Bookmarks && \
rm -rf split || exit 1
-$HOME/lib/bookmarks_db/hotexplode.pl -o split $HOME/work/bookmarks.html && \
+$HOME/lib/bookmarks_db/hotexplode.pl -o split $STARTDIR/bookmarks.html && \
cp -p ../../../misc/nopasswd-index.html split/privatelinks/index.html || exit 1
-cp -p $HOME/work/bkmk-koi.html bookmarks.html && chmod -R a+rX . || exit 1
+cp -p $STARTDIR/bkmk-koi.html bookmarks.html && chmod -R a+rX . || exit 1
#/usr/local/htdig/bkmk.sh
-cd $HOME/work && \
+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