X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=mk-distr;h=ce01503798e6e35286c40605976cc7458977de1e;hp=888f01b87b7c9c91c02cf54ca05fc3bd6f66354a;hb=96e39d55c791326368ff14d538850e14ba5a2c97;hpb=f5300f5741ad16ecddbbeb05cf754d347e166e57 diff --git a/mk-distr b/mk-distr index 888f01b..ce01503 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 BroytMann . -# Copyright: (C) 2004-2008 PhiloSoft Design. -# License: GPL. - - -# __version__ = \ -# __revision__ = "$Id$" -# __date__ = "$Date$"[7:-2] -# __author__ = "Oleg Broytmann " -# __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-2014 PhiloSoft Design" +# __license__ = "GNU GPL" -error() { - echo "$@" - exit 1 -} +if [ -n "$1" ]; then + git checkout "$1" +fi && -if [ -z "$1" ]; then - error "No Subversion URI specified, program aborted" -fi +umask 022 && +prog_dir="`pwd`" && +git archive --format=tar --prefix=bookmarks_db/ HEAD | + (cd "$HOME/tmp" && exec tar xf -) && -umask 022 -cd "$HOME/work" || exit 1 -svn export "$1" bookmarks_db || exit 1 -cd bookmarks_db && make fulldistr && \ -exec rm -rf bookmarks_db +cd "$HOME/tmp/bookmarks_db" && +make fulldistr && +cd .. && exec rm -rf bookmarks_db