summaryrefslogtreecommitdiff
path: root/make_dist.sh
blob: c342eaa57a30f364f056452109daa1b96e868ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# Copyright 2011 Google Inc. All Rights Reserved.
# Author: watson@google.com (Tony Watson)

rev=`svn up|awk '{print $3}'`
archive="capirca-r"$rev"tgz"
filedir='./capirca'

echo "Building: $archive"
find . -name \*.pyc -exec rm {} \;
pushd . > /dev/null
cd ..
tar -czf $archive --exclude-vcs $filedir
mv $archive $filedir
popd > /dev/null
ls -al $archive
echo "Done."