diff options
author | P. J. McDermott <pjm@nac.net> | 2012-01-21 13:41:51 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-01-21 13:41:51 (EST) |
commit | fcf6bda50d3699cbed1c9404783b4da360580c3f (patch) | |
tree | 06fc5bd52c7a29a96478f94c09154709b5d2d34c /src/oh-gencontrol | |
parent | fe18aaff0f0f3964fcabfe21566d43344921383d (diff) |
Provide helpful status output.
Diffstat (limited to 'src/oh-gencontrol')
-rw-r--r-- | src/oh-gencontrol | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/oh-gencontrol b/src/oh-gencontrol index e0af798..6407eda 100644 --- a/src/oh-gencontrol +++ b/src/oh-gencontrol @@ -28,13 +28,13 @@ print_usage() missing_field() { - printf 'ERROR: Missing field "%s" in control file.\n' "${1}" >&2 + printf 'oh-gencontrol: ERROR: Missing field "%s" in control file.\n' "${1}" >&2 exit 2 } invalid_pkg_name() { - printf 'ERROR: Invalid package name: "%s"\n' "${1}" >&2 + printf 'oh-gencontrol: Error: Invalid package name: "%s"\n' "${1}" >&2 exit 2 } @@ -71,6 +71,9 @@ if ${is_src}; then srcpkg=$(oh_get_field Source) || missing_field Source oh_validate_pkg_name "${srcpkg}" || invalid_pkg_name "${srcpkg}" + printf 'oh-gencontrol: Generating control directory for package "%s"...\n' \ + "${srcpkg}-src" + control_dir="${srcpkg}-src.control" control="${control_dir}/control" @@ -94,6 +97,9 @@ else binpkg="${1}" oh_validate_pkg_name "${binpkg}" || invalid_pkg_name "${binpkg}" + printf 'oh-gencontrol: Generating control directory for package "%s"...\n' \ + "${binpkg}" + control_dir="${binpkg}.control" control="${control_dir}/control" |