]> git.phdru.name Git - bookmarks_db.git/blob - mk-distr
Split parse_html/__init__.py into __main__.py
[bookmarks_db.git] / mk-distr
1 #! /bin/sh
2 # Helper script called from Makefile
3 #
4 # This file is a part of Bookmarks database and Internet robot.
5 #
6 # __author__ = "Oleg Broytman <phd@phdru.name>"
7 # __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
8 # __license__ = "GNU GPL"
9
10
11 if [ -n "$1" ]; then
12    git checkout "$1"
13 fi &&
14
15 umask 022 &&
16 prog_dir="`pwd`" &&
17
18 git archive --format=tar --prefix=bookmarks_db/ HEAD |
19    (cd "$HOME/tmp" && exec tar xf -) &&
20
21 cd "$HOME/tmp/bookmarks_db" &&
22 make fulldistr &&
23 cd .. && exec rm -rf bookmarks_db