X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=mk-distr;h=ef471d96d7801b9a55b7eab6742c3909e2d59562;hp=bc7ff1ad55a04242468a8636c30baf937282cc8a;hb=HEAD;hpb=f6c8ed0c082bacff755ea19a445467460a89b3fa diff --git a/mk-distr b/mk-distr index bc7ff1a..ef471d9 100755 --- a/mk-distr +++ b/mk-distr @@ -1,35 +1,19 @@ #! /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 PhiloSoft Design. -# License: GPL. - - -# __version__ = \ -# __revision__ = "$Id: mk-distr,v 1.3 2004/09/22 23:02:39 phd Exp $" -# __date__ = "$Date: 2004/09/22 23:02:39 $"[7:-2] -# __author__ = "Oleg Broytmann " -# __copyright__ = "Copyright (C) 2004 PhiloSoft Design" - - -error() { - echo "$@" - exit 1 -} +# This file is a part of Bookmarks database and Internet robot. +# +# __author__ = "Oleg Broytman " +# __copyright__ = "Copyright (C) 2000-2015 PhiloSoft Design" +# __license__ = "GNU GPL" -if [ -z "$1" ]; then - error "No CVS tag specified, program aborted" -fi +umask 022 && +prog_dir="`pwd`" && -if [ -z "$CVSROOT" ]; then - CVSROOT="$HOME/work/CVSROOT" - export CVSROOT -fi +git archive --format=tar --prefix=bookmarks_db/ "${1:-HEAD}" | + (cd "$HOME/tmp" && exec tar xf -) && -umask 022 -cd "$HOME/work" || exit 1 -cvs export -r "$1" bookmarks_db || exit 1 -cd bookmarks_db && exec make fulldistr +cd "$HOME/tmp/bookmarks_db" && +make fulldistr && +cd .. && exec rm -rf bookmarks_db