From: Oleg Broytman Date: Wed, 15 Jan 2014 04:36:04 +0000 (+0400) Subject: Switch branch before setting umask X-Git-Tag: v4.6.0~49 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=62ae259df520995c8bbb89210cabec8ce6021c36;p=bookmarks_db.git Switch branch before setting umask --- diff --git a/mk-distr b/mk-distr index f6adfca..ce01503 100755 --- a/mk-distr +++ b/mk-distr @@ -4,11 +4,15 @@ # This file is a part of Bookmarks database and Internet robot. # # __author__ = "Oleg Broytman " -# __copyright__ = "Copyright (C) 2000-2013 PhiloSoft Design" +# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" # __license__ = "GNU GPL" -umask 022 +if [ -n "$1" ]; then + git checkout "$1" +fi && + +umask 022 && prog_dir="`pwd`" && git archive --format=tar --prefix=bookmarks_db/ HEAD |