
There were problems with these tools if the path had a space. This should make these tools safe. There are others that still have problems.
22 lines
388 B
Bash
Executable File
22 lines
388 B
Bash
Executable File
#!/bin/sh
|
|
|
|
Usage() {
|
|
cat <<EOF
|
|
Usage: ${0##*/} version
|
|
make a tarball of 'version'
|
|
must be in a bzr directory, and 'version' must be a tag
|
|
|
|
EOF
|
|
}
|
|
|
|
topdir="$PWD"
|
|
tag="$1"
|
|
|
|
[ -n "$tag" ] || { Usage 1>&2 ; exit 1; }
|
|
|
|
out="${topdir}/cloud-init-${tag}.tar.gz"
|
|
|
|
bzr export --format=tgz --root="cloud-init-$tag" \
|
|
"--revision=tag:${tag}" "$out" "$topdir" &&
|
|
echo "Wrote ${out}"
|