diff options
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" |