umask 077
cd $HOME/work && \
-bkmk-koi -c || exit 1
-
-mv public-koi.tmp bkmk-koi.html && \
-mv public-win.tmp bkmk-win.html && \
-chmod a+r bkmk-koi.html bkmk-win.html bookmark.ht1 || exit 1
+bkmk-koi -c && \
+mv public-koi.tmp bkmk-koi.html && chmod a+r bkmk-koi.html || exit 1
echo "Splitting bookmarks..."
cd $HOME/Internet/WWW/htdocs/phd.pp.ru/Bookmarks && \
-rm -rf split.koi split.win || exit 1
+rm -rf split || exit 1
-$HOME/lib/bookmarks_db/hotexplode.pl -o split.koi $HOME/work/bookmarks.html && \
-cp -p ../../../misc/nopasswd-index.html split.koi/privatelinks/index.html && \
-$HOME/lib/bookmarks_db/hotexplode.pl -o split.win $HOME/work/private-win.tmp && \
-cp -p ../../../misc/nopasswd-index.html split.win/privatelinks/index.html || exit 1
+$HOME/lib/bookmarks_db/hotexplode.pl -o split $HOME/work/bookmarks.html && \
+cp -p ../../../misc/nopasswd-index.html split/privatelinks/index.html || exit 1
-cp -p $HOME/work/bkmk-koi.html $HOME/work/bkmk-win.html . && \
-chmod -R a+rX . || exit 1
+cp -p $HOME/work/bkmk-koi.html bookmarks.html && chmod -R a+rX . || exit 1
#/usr/local/htdig/bkmk.sh
cd $HOME/work && \
-exec rm -f header bookmarks.err bookmarks_db.pickle bookmarks_db.flad private-win.tmp
+exec rm -f header bookmarks.err bookmarks_db.pickle bookmarks_db.flad \
+ private-win.tmp public-win.tmp
#zip -9 bkmk bkmk-koi.html bkmk-win.html && \
#rm -f bkmk-win.html && \