# Mk-distr script.
#
# This file is a part of Bookmarks Database and Internet robot.
-# Author: Oleg BroytMann <phd@phd.pp.ru>.
-# Copyright: (C) 2004-2008 PhiloSoft Design.
+# Author: Oleg Broytman <phd@phdru.name>.
+# Copyright: (C) 2004-2011 PhiloSoft Design.
# License: GPL.
# __version__ = \
# __revision__ = "$Id$"
# __date__ = "$Date$"[7:-2]
-# __author__ = "Oleg Broytmann <phd@phd.pp.ru>"
-# __copyright__ = "Copyright (C) 2004-2008 PhiloSoft Design"
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2004-2011 PhiloSoft Design"
error() {
umask 022
-cd "$HOME/work" || exit 1
-svn export "$1" bookmarks_db || exit 1
+prog_dir="`pwd`" && \
+
+cd "$HOME/tmp" && \
+svn export "$1" bookmarks_db && \
+
+cp -p "$prog_dir"/hotexplode.pl bookmarks_db && \
+cp -p "$prog_dir"/doc/COPYING "$prog_dir"/BeautifulSoup.py "$prog_dir"/subproc.py bookmarks_db && \
+
cd bookmarks_db && make fulldistr && \
cd .. && exec rm -rf bookmarks_db