]> git.phdru.name Git - bookmarks_db.git/commitdiff
Mk-distr script.
authorOleg Broytman <phd@phdru.name>
Wed, 22 Sep 2004 22:58:18 +0000 (22:58 +0000)
committerOleg Broytman <phd@phdru.name>
Wed, 22 Sep 2004 22:58:18 +0000 (22:58 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@44 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

mk-distr [new file with mode: 0755]

diff --git a/mk-distr b/mk-distr
new file mode 100755 (executable)
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 <phd@phd.pp.ru>.
+# 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 <phd@phd.pp.ru>"
+# __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