forked from imrivera/svndumptool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.sh
executable file
·45 lines (39 loc) · 823 Bytes
/
make.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/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