summaryrefslogtreecommitdiff
path: root/make_dist.sh
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2015-04-02 10:43:33 +0200
committerJohan Lundberg <lundberg@nordu.net>2015-04-02 10:43:33 +0200
commitbd611ac59f7c4db885a2f8631ef0bcdcd1901ca0 (patch)
treee60f5333a7699cd021b33c7f5292af55b774001b /make_dist.sh
Diffstat (limited to 'make_dist.sh')
-rwxr-xr-xmake_dist.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/make_dist.sh b/make_dist.sh
new file mode 100755
index 0000000..c342eaa
--- /dev/null
+++ b/make_dist.sh
@@ -0,0 +1,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."
+