From bc74f7c23922518a1ee1cc27ed458c082f29888b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 22 Sep 2004 22:58:18 +0000 Subject: [PATCH] Mk-distr script. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@44 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- mk-distr | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 mk-distr diff --git a/mk-distr b/mk-distr new file mode 100755 index 0000000..a113aab --- /dev/null +++ b/mk-distr @@ -0,0 +1,35 @@ +#! /bin/sh +# Mk-distr script. +# +# 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.1 2004/09/22 22:58:18 phd Exp $" +# __date__ = "$Date: 2004/09/22 22:58:18 $"[7:-2] +# __author__ = "Oleg Broytmann " +# __copyright__ = "Copyright (C) 2003 PhiloSoft Design" + + +error() { + echo "$@" + exit 1 +} + +if [ -z "$1" ]; then + error "No CVS tag specified, program aborted" +fi + + +if [ -z "$CVSROOT" ]; then + CVSROOT="$HOME/work/CVSROOT" + export CVSROOT +fi + +umask 022 +cd "$HOME/work" || exit 1 +cvs export -r "$1" bookmarks_db || exit 1 +cd bookmarks_db && exec make distr -- 2.39.5