verify-cvs2svn.py: Use split_output() in implementation of SvnRepos.list().
[cvs2svn.git] / dist.sh
blobf828d4e4aa50c50088da1b842e069f42b3034630
1 #!/bin/sh
2 set -e
4 # Build a cvs2svn distribution.
6 VERSION=`python cvs2svn_lib/version.py`
7 echo "Building cvs2svn ${VERSION}"
8 WC_REV=`svnversion -n .`
9 DIST_BASE=cvs2svn-${VERSION}
10 DIST_FULL=${DIST_BASE}.tar.gz
12 if echo ${WC_REV} | grep -q -e '[^0-9]'; then
13 echo "Packaging requires a single-revision, pristine working copy."
14 echo ""
15 echo "Run 'svn update' to get a working copy without mixed revisions,"
16 echo "and make sure there are no local modifications."
17 exit 1
20 # Clean up anything that might have been left from a previous run.
21 rm -rf dist MANIFEST ${DIST_FULL}
22 make clean
24 # Build the dist, Python's way.
25 ./setup.py sdist
26 mv dist/${DIST_FULL} .
28 # Clean up after this run.
29 rm -rf dist MANIFEST
31 # We're outta here.
32 echo ""
33 echo "Done:"
34 echo ""
35 ls -l ${DIST_FULL}
36 md5sum ${DIST_FULL}
37 echo ""