X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mk-distr;h=daa03125c9313bb6643313c783c66a8e1947d93c;hb=ff7bf8d52beff0156f82cd4447768ebef4898b41;hp=302e5f2ae529b910a5aace74684220c416039bcc;hpb=0e76f1851882b99da63a7c8a9e4cdf0c4a48657f;p=bookmarks_db.git diff --git a/mk-distr b/mk-distr index 302e5f2..daa0312 100755 --- a/mk-distr +++ b/mk-distr @@ -1,31 +1,23 @@ #! /bin/sh -# Mk-distr script. +# Helper script called from Makefile # -# This file is a part of Bookmarks Database and Internet robot. -# Author: Oleg Broytman . -# Copyright: (C) 2004-2008 PhiloSoft Design. -# License: GPL. - - -# __version__ = \ -# __revision__ = "$Id$" -# __date__ = "$Date$"[7:-2] -# __author__ = "Oleg Broytman " -# __copyright__ = "Copyright (C) 2004-2008 PhiloSoft Design" +# This file is a part of Bookmarks database and Internet robot. +# +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2000-2013 PhiloSoft Design" +# __license__ = "GNU GPL" -error() { - echo "$@" - exit 1 -} +umask 022 +prog_dir="`pwd`" && -if [ -z "$1" ]; then - error "No Subversion URI specified, program aborted" -fi +git archive --format=tar --prefix=bookmarks_db/ HEAD | + (cd "$HOME/tmp" && exec tar xf -) && +cd "$HOME/tmp/bookmarks_db" && +cp -p "$prog_dir"/BeautifulSoup.py "$prog_dir"/subproc.py \ + "$prog_dir"/hotexplode.pl . && +cp -p "$prog_dir"/doc/COPYING doc && -umask 022 -cd "$HOME/work" || exit 1 -svn export "$1" bookmarks_db || exit 1 -cd bookmarks_db && make fulldistr && \ +make fulldistr && cd .. && exec rm -rf bookmarks_db