From fcf6bda50d3699cbed1c9404783b4da360580c3f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 21 Jan 2012 13:41:51 -0500 Subject: Provide helpful status output. --- (limited to 'src/oh-gencontrol') 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" -- cgit v0.9.1