X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mk-distr;h=ef471d96d7801b9a55b7eab6742c3909e2d59562;hb=b65d59b866ec851da9871afe9707f6b1e38866be;hp=ce01503798e6e35286c40605976cc7458977de1e;hpb=62ae259df520995c8bbb89210cabec8ce6021c36;p=bookmarks_db.git diff --git a/mk-distr b/mk-distr index ce01503..ef471d9 100755 --- a/mk-distr +++ b/mk-distr @@ -4,18 +4,14 @@ # This file is a part of Bookmarks database and Internet robot. # # __author__ = "Oleg Broytman " -# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" +# __copyright__ = "Copyright (C) 2000-2015 PhiloSoft Design" # __license__ = "GNU GPL" -if [ -n "$1" ]; then - git checkout "$1" -fi && - umask 022 && prog_dir="`pwd`" && -git archive --format=tar --prefix=bookmarks_db/ HEAD | +git archive --format=tar --prefix=bookmarks_db/ "${1:-HEAD}" | (cd "$HOME/tmp" && exec tar xf -) && cd "$HOME/tmp/bookmarks_db" &&