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."
15 echo "Run 'svn update' to get a working copy without mixed revisions,"
16 echo "and make sure there are no local modifications."
20 # Clean up anything that might have been left from a previous run.
21 rm -rf dist MANIFEST
${DIST_FULL}
24 # Build the dist, Python's way.
26 mv dist
/${DIST_FULL} .
28 # Clean up after this run.