#!/bin/sh set -e sourcename="cloud-utils" RELEASE=${RELEASE:-UNRELEASED} TEMP_D="" fail() { echo "$@" 1>&2; exit 1; } cleanup() { [ -z "$TEMP_D" ] || rm -Rf "$TEMP_D" } if [ "$1" = "-h" -o "$1" = "--help" ]; then cat < debian/changelog < $(date -R) EOF debuild "$@" || fail "debuild failed" cd "$TEMP_D" for f in *; do [ -f "$f" ] || continue cp "$f" "$start_d" || fail "failed copy $f" echo "wrote $f" done exit