Permalink
Browse files

Add make.sh.

git-svn-id: http://repos.borg.ch/svn/svndumptool/trunk@127 6efa3c87-76b7-0310-880b-b21ee7abef31
  • Loading branch information...
1 parent cdf2002 commit 22d5b9314be12af8dc5037dd23dfe71e75b11e4b mf committed Apr 9, 2007
Showing with 45 additions and 0 deletions.
  1. +45 −0 make.sh
View
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+MAKE_DOC=1
+MAKE_PKG=1
+
+if [ -n "$1" ]; then
+ MAKE_DOC=0
+ MAKE_PKG=0
+ while [ -n "$1" ]; do
+ case "$1" in
+ doc)
+ MAKE_DOC=1
+ ;;
+ pkg)
+ MAKE_PKG=1
+ ;;
+ *)
+ echo "unknown command '$1'"
+ exit 1
+ ;;
+ esac
+ done
+fi
+
+VERSION=`./svndumptool.py --version | awk '/^svndumptool.py/{print $2}'`
+if [ -z "$VERSION" ]; then
+ echo "Couldn't determine svndumptool's version."
+ exit 1
+fi
+
+if [ $MAKE_DOC = 1 ]; then
+ if [ -d doc ]; then
+ rm -rf doc
+ fi
+ mkdir doc
+ epydoc --html -o doc -n "SvnDump $VERSION" svndump
+fi
+
+if [ $MAKE_PKG = 1 ]; then
+ if [ -d dist ]; then
+ rm -rf dist
+ fi
+ ./setup.py sdist --formats gztar
+fi
+

0 comments on commit 22d5b93

Please sign in to comment.