tools/make-tarball: add ability to include uncommited changes

if you have UNCOMMITTED=1 in environment then the tree will
contain uncommitted changes.
This commit is contained in:
Scott Moser 2014-02-28 16:19:19 -05:00
parent 5772d190bf
commit ed634a4760

View File

@ -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"