diff options
Diffstat (limited to 'tools/make-tarball')
-rwxr-xr-x | tools/make-tarball | 8 |
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" |