summaryrefslogtreecommitdiff
path: root/tools/make-tarball
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-02-28 16:19:19 -0500
committerScott Moser <smoser@ubuntu.com>2014-02-28 16:19:19 -0500
commit91770eb78f30bea931bafa8d07b4f7f41193185b (patch)
tree2362ca2e173d19e23e30bc15db7a0fbfab752b93 /tools/make-tarball
parent20098e0167e8d8024317a6ed61b0cac363bdae2a (diff)
downloadvyos-cloud-init-91770eb78f30bea931bafa8d07b4f7f41193185b.tar.gz
vyos-cloud-init-91770eb78f30bea931bafa8d07b4f7f41193185b.zip
tools/make-tarball: add ability to include uncommited changes
if you have UNCOMMITTED=1 in environment then the tree will contain uncommitted changes.
Diffstat (limited to 'tools/make-tarball')
-rwxr-xr-xtools/make-tarball8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/make-tarball b/tools/make-tarball
index 27f5f374..b7039150 100755
--- a/tools/make-tarball
+++ b/tools/make-tarball
@@ -27,7 +27,13 @@ else
ARCHIVE_FN="$PWD/cloud-init-$VERSION~bzr$REVNO.tar.gz"
fi
-bzr export --format=tgz --root="cloud-init-$VERSION~bzr$REVNO" \
+export_uncommitted=""
+if [ "${UNCOMMITTED:-0}" != "0" ]; then
+ export_uncommitted="--uncommitted"
+fi
+
+bzr export ${export_uncommitted} \
+ --format=tgz --root="cloud-init-$VERSION~bzr$REVNO" \
"--revision=${REVNO}" "${ARCHIVE_FN}" "$ROOT_DIR"
echo "$ARCHIVE_FN"