From 5bafe0f832ec93712c39352f96f873019bb491e8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 22 Jul 2013 23:11:31 +0400 Subject: [PATCH] svn => git --- Makefile | 4 ++-- mk-distr | 18 +++++++----------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 831351c..fb9061b 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # This file is a part of Bookmarks database and Internet robot. # # __author__ = "Oleg Broytman " -# __copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" +# __copyright__ = "Copyright (C) 2000-2013 PhiloSoft Design" # __license__ = "GNU GPL" # @@ -18,7 +18,7 @@ all: .PHONY: distr distr: - ./mk-distr file:///home/phd/work/SVN/bookmarks_db/trunk + ./mk-distr fulldistr: clean examples_distr cd .. && tar cf - bookmarks_db | bzip2 -9 > bookmarks_db-$(VERSION).tar.bz2 diff --git a/mk-distr b/mk-distr index a19cdf9..923c52d 100755 --- a/mk-distr +++ b/mk-distr @@ -4,7 +4,7 @@ # This file is a part of Bookmarks database and Internet robot. # # __author__ = "Oleg Broytman " -# __copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" +# __copyright__ = "Copyright (C) 2000-2013 PhiloSoft Design" # __license__ = "GNU GPL" @@ -13,20 +13,16 @@ error() { exit 1 } -if [ -z "$1" ]; then - error "No Subversion URI specified, program aborted" -fi - - umask 022 prog_dir="`pwd`" && -cd "$HOME/tmp" && -svn export "$1" bookmarks_db && +git archive --format=tar --prefix=bookmarks_db/ HEAD | + (cd "$HOME/tmp" && tar xf -) && +cd "$HOME/tmp/bookmarks_db" && cp -p "$prog_dir"/BeautifulSoup.py "$prog_dir"/subproc.py \ - "$prog_dir"/hotexplode.pl bookmarks_db && -cp -p "$prog_dir"/doc/COPYING bookmarks_db/doc && + "$prog_dir"/hotexplode.pl . && +cp -p "$prog_dir"/doc/COPYING doc && -cd bookmarks_db && make fulldistr && +make fulldistr && cd .. && exec rm -rf bookmarks_db -- 2.39.5